Simplified a log handler

This commit is contained in:
Gina Häußge committed 2018-06-04 18:44:10 +02:00
1 parent d133bd47e5
commit 9c89c4c999
1 file changed
+2 -2
+2 -2
View File
@@ -71,7 +71,7 @@ class SerialLogHandler(AsyncLogHandlerMixin, logging.handlers.RotatingFileHandle
self.cleanupFiles()
def shouldRollover(self, record):
return type(self).do_rollover
return self.do_rollover
def getFilesToDelete(self):
"""
@@ -100,7 +100,7 @@ class SerialLogHandler(AsyncLogHandlerMixin, logging.handlers.RotatingFileHandle
os.remove(path)
def doRollover(self):
self.__class__._do_rollover = False
self.do_rollover = False
if self.stream:
self.stream.close()