diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2007-10-09 16:58:39 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <mpg@redhat.com> | 2007-10-09 16:58:39 (GMT) |
commit | b44a2916ba410366078fd2f8dc5ddb10b3c4e65a (patch) | |
tree | cb613381784c48d30536464aef46d2fc9f4b679c /shell | |
parent | b03cf6c5e81b8d5a9e90f5410d0755f29409ff05 (diff) |
Rework sugar.logger and make activities just
redirect their output to a log.
Diffstat (limited to 'shell')
-rwxr-xr-x | shell/sugar-shell | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/shell/sugar-shell b/shell/sugar-shell index 0ecc4eb..9f1d3a2 100755 --- a/shell/sugar-shell +++ b/shell/sugar-shell @@ -26,13 +26,10 @@ import gtk import gobject import gst -from sugar import logger from sugar import env +from sugar import logger from sugar.profile import get_profile -logger.cleanup() -logger.start('shell') - sys.path.insert(0, env.get_shell_path()) from view.Shell import Shell @@ -97,6 +94,9 @@ def _shell_started_cb(): def main(): gobject.idle_add(_shell_started_cb) + logger.setup_logs_dir() + logger.start('shell') + _save_session_info() _start_matchbox() _setup_translations() |