summaryrefslogtreecommitdiff
path: root/src/leap/util/leap_log_handler.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/util/leap_log_handler.py')
-rw-r--r--src/leap/util/leap_log_handler.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/leap/util/leap_log_handler.py b/src/leap/util/leap_log_handler.py
index 3264e05c..5b8ae789 100644
--- a/src/leap/util/leap_log_handler.py
+++ b/src/leap/util/leap_log_handler.py
@@ -18,10 +18,10 @@
Custom handler for the logger window.
"""
import logging
-from functools import partial
from PySide import QtCore
+
class LogHandler(logging.Handler):
"""
This is the custom handler that implements our desired formatting
@@ -36,6 +36,11 @@ class LogHandler(logging.Handler):
_log_history = []
def __init__(self, qtsignal):
+ """
+ LogHander initialization.
+ Calls parent method and keeps a reference to the qtsignal
+ that will be used to fire the gui update.
+ """
logging.Handler.__init__(self)
self._qtsignal = qtsignal
@@ -119,6 +124,10 @@ class LeapLogHandler(QtCore.QObject, HandlerAdapter):
new_log = QtCore.Signal(dict)
def __init__(self):
+ """
+ LeapLogHandler initialization.
+ Initializes parent classes.
+ """
QtCore.QObject.__init__(self)
HandlerAdapter.__init__(self, qtsignal=self.qtsignal)