Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar
diff options
context:
space:
mode:
authorMarco 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)
commit43fb1627a7ce9a5e05230699cda7448c44f5c689 (patch)
tree936385d10462e65e859f70cc8fbedff1b9fe3e17 /sugar
parentde5b64206c94a987174b087dcac9732f2ab419d8 (diff)
Cleanup
Diffstat (limited to 'sugar')
-rw-r--r--sugar/logger.py6
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)