Use the activity service name for logs rather than

the user visible name.
This commit is contained in:
Marco Pesenti Gritti 2007-09-04 15:55:21 +02:00
parent f6239d6df8
commit 3ae5186b7a
2 changed files with 2 additions and 2 deletions

View File

@ -157,7 +157,7 @@ def run(bundle_path):
bundle = Bundle(bundle_path) bundle = Bundle(bundle_path)
logger.start(bundle.get_name()) logger.start(bundle.get_service_name())
gettext.bindtextdomain(bundle.get_service_name(), gettext.bindtextdomain(bundle.get_service_name(),
bundle.get_locale_path()) bundle.get_locale_path())

View File

@ -104,7 +104,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.replace('.', '_').upper() + "_DEBUG"
if not os.environ.has_key(module_key) and not env.is_emulator(): if not os.environ.has_key(module_key) and not env.is_emulator():
return return