Rework sugar.logger and make activities just

redirect their output to a log.
This commit is contained in:
Marco Pesenti Gritti
2007-10-09 18:58:39 +02:00
parent b03cf6c5e8
commit b44a2916ba
6 changed files with 61 additions and 191 deletions
+4 -4
View File
@@ -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()