From 4a070806aa14d66cdd53e589afa16baeb0981607 Mon Sep 17 00:00:00 2001 From: Jonathan Claudius Date: Wed, 3 Jul 2019 13:58:20 -0400 Subject: [PATCH] Revert class renaming --- ldap_access_log_humanizer/syslog_server.py | 4 ++-- tests/unit-tests/test_syslog_server.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ldap_access_log_humanizer/syslog_server.py b/ldap_access_log_humanizer/syslog_server.py index adac80d..c6af21b 100644 --- a/ldap_access_log_humanizer/syslog_server.py +++ b/ldap_access_log_humanizer/syslog_server.py @@ -6,7 +6,7 @@ from ldap_access_log_humanizer.custom_logger import CustomLogger from ldap_access_log_humanizer.parser import Parser -class CustomSyslogUDPHandler(SocketServer.BaseRequestHandler): +class SyslogUDPHandler(SocketServer.BaseRequestHandler): def __init__(self, parser): SocketServer.BaseRequestHandler.__init__(self) self.parser = parser @@ -37,7 +37,7 @@ class SyslogServer(): self.parser = Parser(None, self.args_dict) def serve(self): - server = UDPServer((self.host, int(self.port)), CustomSyslogUDPHandler(self.parser), self.args_dict) + server = UDPServer((self.host, int(self.port)), SyslogUDPHandler(self.parser), self.args_dict) server.serve_forever(poll_interval=0.5) def start_syslog(self): diff --git a/tests/unit-tests/test_syslog_server.py b/tests/unit-tests/test_syslog_server.py index 4f5ffa3..315722b 100644 --- a/tests/unit-tests/test_syslog_server.py +++ b/tests/unit-tests/test_syslog_server.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -from ldap_access_log_humanizer.syslog_server import CustomSyslogUDPHandler +from ldap_access_log_humanizer.syslog_server import SyslogUDPHandler from ldap_access_log_humanizer.syslog_server import UDPServer from ldap_access_log_humanizer.syslog_server import SyslogServer from ldap_access_log_humanizer.parser import Parser