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-09-04 13:55:21 (GMT)
committer Marco Pesenti Gritti <mpg@redhat.com>2007-09-04 13:55:21 (GMT)
commit3ae5186b7a623f0be89aa9594f3b8efb3e5375ef (patch)
treef144bf7bf1073429b6f65682f7d3844071ac4a87 /sugar
parentf6239d6df84718044d26f5e746b08a15afb944bf (diff)
Use the activity service name for logs rather than
the user visible name.
Diffstat (limited to 'sugar')
-rw-r--r--sugar/activity/activityfactoryservice.py2
-rw-r--r--sugar/logger.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/sugar/activity/activityfactoryservice.py b/sugar/activity/activityfactoryservice.py
index c10a50d..bd89b91 100644
--- a/sugar/activity/activityfactoryservice.py
+++ b/sugar/activity/activityfactoryservice.py
@@ -157,7 +157,7 @@ def run(bundle_path):
bundle = Bundle(bundle_path)
- logger.start(bundle.get_name())
+ logger.start(bundle.get_service_name())
gettext.bindtextdomain(bundle.get_service_name(),
bundle.get_locale_path())
diff --git a/sugar/logger.py b/sugar/logger.py
index de73d24..4fcc40d 100644
--- a/sugar/logger.py
+++ b/sugar/logger.py
@@ -104,7 +104,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"
+ module_key = module_id.replace('.', '_').upper() + "_DEBUG"
if not os.environ.has_key(module_key) and not env.is_emulator():
return