am c269aca7: am 7a8c7c48: Merge "Also send bionicbb logs to a file."
* commit 'c269aca791fe6f01a906135c1104b7eee5214901': Also send bionicbb logs to a file.
This commit is contained in:
commit
906c4bb029
@ -120,6 +120,10 @@ def drop_rejection():
|
||||
|
||||
if __name__ == "__main__":
|
||||
logging.basicConfig(level=logging.INFO)
|
||||
logger = logging.getLogger()
|
||||
fh = logging.FileHandler('bionicbb.log')
|
||||
fh.setLevel(logging.INFO)
|
||||
logger.addHandler(fh)
|
||||
|
||||
# Prevent the job from being rescheduled by the reloader.
|
||||
if os.environ.get('WERKZEUG_RUN_MAIN') == 'true':
|
||||
|
Loading…
x
Reference in New Issue
Block a user