Turn logs on by default for the emulator

This commit is contained in:
Dan Williams 2007-07-25 12:24:10 -04:00
parent 32dc59f169
commit 5e30ed9f3b

View File

@ -105,7 +105,11 @@ def _get_logs_dir():
def start(module_id): def start(module_id):
# Only log if logging is set up for the activity # Only log if logging is set up for the activity
module_key = module_id.upper() + "_DEBUG" module_key = module_id.upper() + "_DEBUG"
if not os.environ.has_key(module_key): 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:
return return
log_writer = LogWriter(module_id) log_writer = LogWriter(module_id)