summaryrefslogtreecommitdiff
path: root/portato/gui
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2009-02-03 21:14:41 +0100
committerRené 'Necoro' Neumann <necoro@necoro.net>2009-02-03 21:14:41 +0100
commit77fa3af6a811e95ca7a9704e804ed22b5928aba5 (patch)
treebda7fe52672faa0734581549eaf3a6fbac9ba2b9 /portato/gui
parent4250e6969b807bec849d9c9078ec5206333ac339 (diff)
downloadportato-77fa3af6a811e95ca7a9704e804ed22b5928aba5.tar.gz
portato-77fa3af6a811e95ca7a9704e804ed22b5928aba5.tar.bz2
portato-77fa3af6a811e95ca7a9704e804ed22b5928aba5.zip
Always print debug messages in the file log
Diffstat (limited to '')
-rw-r--r--portato/gui/views.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/portato/gui/views.py b/portato/gui/views.py
index 26a8a89..9c55da0 100644
--- a/portato/gui/views.py
+++ b/portato/gui/views.py
@@ -18,6 +18,7 @@ import gtksourceview2
import logging
from ..helper import warning
+from ..log import add_handler
class LazyView (object):
def __init__ (self):
@@ -147,7 +148,7 @@ class LogView (logging.Handler):
for lvl, name, color in self.colors:
self.buf.create_tag("log_%s" % name, foreground = color,weight = pango.WEIGHT_BOLD)
- logging.getLogger("portatoLogger.stream").addHandler(self)
+ add_handler(self)
def emit (self, record):