utils: remove unused SocketLoggingHandler
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
62e5f85473
commit
e1addb16fd
|
@ -12,23 +12,6 @@ class ServerError(Exception):
|
|||
Exception.__init__(self, message)
|
||||
self.status_code = status_code
|
||||
|
||||
# XXX - Currently logging over the socket is not implemented.
|
||||
# I don't think it would be wise to log everything over the
|
||||
# socket, however it may be useful to log some specific items.
|
||||
# Decide what to do, then either finish the implementation or
|
||||
# remove this code
|
||||
class SocketLoggingHandler(logging.Handler):
|
||||
def __init__(self, server_manager):
|
||||
super(SocketLoggingHandler, self).__init__()
|
||||
self.server_manager = server_manager
|
||||
|
||||
def emit(self, record):
|
||||
record.msg = "[MOONRAKER]: " + record.msg
|
||||
# XXX - Convert log record to dict before sending,
|
||||
# the klippy_send function will handle serialization
|
||||
|
||||
self.server_manager.klippy_send(record)
|
||||
|
||||
class MoonrakerLoggingHandler(logging.handlers.TimedRotatingFileHandler):
|
||||
def __init__(self, filename, **kwargs):
|
||||
super(MoonrakerLoggingHandler, self).__init__(filename, **kwargs)
|
||||
|
|
Loading…
Reference in New Issue