mirror of https://github.com/scrapy/scrapy.git
Flush StreamLogger handlers
This commit is contained in:
parent
498a3725d1
commit
48f6a065b8
|
|
@ -146,7 +146,8 @@ class StreamLogger(object):
|
|||
self.logger.log(self.log_level, line.rstrip())
|
||||
|
||||
def flush(self):
|
||||
pass
|
||||
for h in self.logger.handlers:
|
||||
h.flush()
|
||||
|
||||
|
||||
class LogCounterHandler(logging.Handler):
|
||||
|
|
|
|||
Loading…
Reference in New Issue