diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-08-11 15:05:06 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-08-11 15:05:06 (GMT) |
commit | 9585330e43fe279f839d2f63f96109d00c2470c8 (patch) | |
tree | 1e86c2af310fe8f2e32fea95fbd46ca1fe9e8766 /shell/Shell.py | |
parent | 884eef4bd52a33d13a1c509bf004842fa7b58652 (diff) |
Add a way to enable/disable displaying debug messages
Diffstat (limited to 'shell/Shell.py')
-rwxr-xr-x | shell/Shell.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/shell/Shell.py b/shell/Shell.py index 9c87a25..bf0d89b 100755 --- a/shell/Shell.py +++ b/shell/Shell.py @@ -40,8 +40,8 @@ class ShellDbusService(dbus.service.Object): gobject.idle_add(self.__show_console_idle) @dbus.service.method('com.redhat.Sugar.Shell') - def log(self, module_id, message): - self._shell.log(module_id, message) + def log(self, level, module_id, message): + self._shell.log(level, module_id, message) class Shell(gobject.GObject): __gsignals__ = { @@ -151,8 +151,8 @@ class Shell(gobject.GObject): logging.error('No such activity in the directory') return None - def log(self, module_id, message): - self._console.log(module_id, message) + def log(self, level, module_id, message): + self._console.log(level, module_id, message) def get_registry(self): return self._registry |