Rework sugar.logger and make activities just
redirect their output to a log.
This commit is contained in:
+4
-4
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user