From 77fa3af6a811e95ca7a9704e804ed22b5928aba5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Tue, 3 Feb 2009 21:14:41 +0100 Subject: Always print debug messages in the file log --- portato/gui/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'portato/gui/views.py') 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): -- cgit v1.2.3