diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2007-08-15 10:23:57 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <mpg@redhat.com> | 2007-08-15 10:23:57 (GMT) |
commit | 43fb1627a7ce9a5e05230699cda7448c44f5c689 (patch) | |
tree | 936385d10462e65e859f70cc8fbedff1b9fe3e17 /sugar/logger.py | |
parent | de5b64206c94a987174b087dcac9732f2ab419d8 (diff) |
Cleanup
Diffstat (limited to 'sugar/logger.py')
-rw-r--r-- | sugar/logger.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sugar/logger.py b/sugar/logger.py index e857044..72c4a99 100644 --- a/sugar/logger.py +++ b/sugar/logger.py @@ -105,11 +105,7 @@ def _get_logs_dir(): def start(module_id): # Only log if logging is set up for the activity module_key = module_id.upper() + "_DEBUG" - emulator = False - if os.environ.has_key("SUGAR_EMULATOR"): - if os.environ["SUGAR_EMULATOR"] == "yes": - emulator = True - if not os.environ.has_key(module_key) and not emulator: + if not os.environ.has_key(module_key) and not env.is_emulator(): return log_writer = LogWriter(module_id) |