summaryrefslogtreecommitdiff
path: root/portato/gui/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'portato/gui/views.py')
-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):