diff options
author | Tomasz Kramkowski <tomasz@kramkow.ski> | 2025-08-15 21:47:41 +0100 |
---|---|---|
committer | Tomasz Kramkowski <tomasz@kramkow.ski> | 2025-08-15 21:47:41 +0100 |
commit | a961fbda426d79dc3c33a66848408e84b0737a98 (patch) | |
tree | 264ffa9a3be219cb4ec067f64030af64e67521ee /klippy/queuelogger.py | |
parent | e48c5758975756271ae4bf4b9eae538d0a411c21 (diff) | |
download | kutter-a961fbda426d79dc3c33a66848408e84b0737a98.tar.gz kutter-a961fbda426d79dc3c33a66848408e84b0737a98.tar.xz kutter-a961fbda426d79dc3c33a66848408e84b0737a98.zip |
Isort all klippy code
Diffstat (limited to 'klippy/queuelogger.py')
-rw-r--r-- | klippy/queuelogger.py | 7 |
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): |