summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/logs/utils.py
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2015-09-17 22:53:38 -0400
committerKali Kaneko <kali@leap.se>2015-09-17 22:54:05 -0400
commit905059dcc203680f86316c83d538f14896adb928 (patch)
tree3374bb215eacf9bc92840958b48f892a81998525 /src/leap/bitmask/logs/utils.py
parent10f6f5b17e0ac1d5d4b433a428efc1beffd999a7 (diff)
[style] pep8 fixes
Diffstat (limited to 'src/leap/bitmask/logs/utils.py')
-rw-r--r--src/leap/bitmask/logs/utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/leap/bitmask/logs/utils.py b/src/leap/bitmask/logs/utils.py
index 683fb542..f709da8b 100644
--- a/src/leap/bitmask/logs/utils.py
+++ b/src/leap/bitmask/logs/utils.py
@@ -112,7 +112,7 @@ def replace_stdout_stderr_with_logging(logger=None):
log.startLogging(sys.stdout)
-class QtLogHandler(logbook.Handler, logbook.StringFormatterHandlerMixin):
+class QtLogHandler(logbook.Handler, logbook.StringFormatterHandlerMixin):
"""
Custom log handler which emits a log record with the message properly
formatted using a Qt Signal.
@@ -186,6 +186,7 @@ class QtLogHandler(logbook.Handler, logbook.StringFormatterHandlerMixin):
class _LogController(object):
+
def __init__(self):
self._qt_handler = QtLogHandler(format_string=LOG_FORMAT)
self._logbook_controller = None