This bug was introduced in:
commit
400c9251eedbd1caa3b28135b4bc5d2bf2124ac5
Author: W. Trevor King <wking@tremily.us>
Date: Thu Jan 24 02:43:53 2013 -0500
util:wsgi: If we're logging to a file, shift libbe.LOG too
where the removed handlers clobbered our initial
TimedRotatingFileHandler.
path, when='w6', interval=1, backupCount=4,
encoding=libbe.util.encoding.get_text_file_encoding())
while libbe.LOG.handlers:
- handler = libbe.LOG.handlers[0]
- libbe.LOG.removeHandler(handler)
+ h = libbe.LOG.handlers[0]
+ libbe.LOG.removeHandler(h)
libbe.LOG.addHandler(handler)
else:
handler = logging.StreamHandler(self.stdout)