Add flush() method to StreamLogger

Fixes GH-2125
This commit is contained in:
Paul Tremberth 2016-09-14 12:19:50 +02:00
parent 129421c7e3
commit 498a3725d1
1 changed files with 3 additions and 0 deletions

View File

@ -145,6 +145,9 @@ class StreamLogger(object):
for line in buf.rstrip().splitlines():
self.logger.log(self.log_level, line.rstrip())
def flush(self):
pass
class LogCounterHandler(logging.Handler):
"""Record log levels count into a crawler stats"""