Merge "Also send bionicbb logs to a file."
This commit is contained in:
commit
7a8c7c48db
1 changed files with 4 additions and 0 deletions
|
@ -120,6 +120,10 @@ def drop_rejection():
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
logging.basicConfig(level=logging.INFO)
|
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.
|
# Prevent the job from being rescheduled by the reloader.
|
||||||
if os.environ.get('WERKZEUG_RUN_MAIN') == 'true':
|
if os.environ.get('WERKZEUG_RUN_MAIN') == 'true':
|
||||||
|
|
Loading…
Reference in a new issue