From e1addb16fdf030587f60dae96abb122a58d84b7f Mon Sep 17 00:00:00 2001 From: Arksine Date: Fri, 7 Aug 2020 17:27:37 -0400 Subject: [PATCH] utils: remove unused SocketLoggingHandler Signed-off-by: Eric Callahan --- moonraker/utils.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/moonraker/utils.py b/moonraker/utils.py index 85ca7e5..269ce73 100644 --- a/moonraker/utils.py +++ b/moonraker/utils.py @@ -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)