diff options
author | Agustin Zubiaga <aguz@sugarlabs.org> | 2012-02-10 00:11:17 (GMT) |
---|---|---|
committer | Agustin Zubiaga <aguz@sugarlabs.org> | 2012-02-10 00:11:17 (GMT) |
commit | 0e0465dbbeabfa605e78c18bbcf77cfbefa8ed82 (patch) | |
tree | 5c0324cfcf053d2b6701248cfe01ed5bb7ca18e6 /activity.py | |
parent | 78c7fd75f74c4c426b82d6fb72f4d9288863cc66 (diff) |
Fix in logging
Diffstat (limited to 'activity.py')
-rw-r--r-- | activity.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/activity.py b/activity.py index f297849..807f32b 100644 --- a/activity.py +++ b/activity.py @@ -89,7 +89,9 @@ while os.path.exists(CHART_FILE): del num -logger = logging.getLogger("SimpleGraph") +log = logging.getLogger('simplegraph-activity') +log.setLevel(logging.DEBUG) +logging.basicConfig() class ChartArea(gtk.DrawingArea): @@ -634,7 +636,7 @@ class ChartData(gtk.TreeView): self.get_column(1), True) - logger.info("Added: %s, Value: %s" % (label, value)) + log.info("Added: %s, Value: %s" % (label, value)) return path @@ -648,13 +650,13 @@ class ChartData(gtk.TreeView): return path def _label_changed(self, cell, path, new_text, model): - logger.info("Change '%s' to '%s'" % (model[path][0], new_text)) + log.info("Change '%s' to '%s'" % (model[path][0], new_text)) model[path][0] = new_text self.emit("label-changed", str(path), new_text) def _value_changed(self, cell, path, new_text, model, activity): - logger.info("Change '%s' to '%s'" % (model[path][1], new_text)) + log.info("Change '%s' to '%s'" % (model[path][1], new_text)) is_number = True try: float(new_text) |