Cleanup
This commit is contained in:
parent
de5b64206c
commit
43fb1627a7
@ -105,11 +105,7 @@ 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"
|
||||||
emulator = False
|
if not os.environ.has_key(module_key) and not env.is_emulator():
|
||||||
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user