aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/queuelogger.py
diff options
context:
space:
mode:
Diffstat (limited to 'klippy/queuelogger.py')
-rw-r--r--klippy/queuelogger.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/klippy/queuelogger.py b/klippy/queuelogger.py
index 2792d513..b8640527 100644
--- a/klippy/queuelogger.py
+++ b/klippy/queuelogger.py
@@ -3,7 +3,11 @@
# Copyright (C) 2016-2019 Kevin O'Connor <kevin@koconnor.net>
#
# This file may be distributed under the terms of the GNU GPLv3 license.
-import logging, logging.handlers, threading, queue, time
+import logging
+import logging.handlers
+import queue
+import threading
+import time
# Class to forward all messages through a queue to a background thread
@@ -22,6 +26,7 @@ class QueueHandler(logging.Handler):
except Exception:
self.handleError(record)
+
# Class to poll a queue in a background thread and log each message
class QueueListener(logging.StreamHandler):
def __init__(self):