From 21988a3b1607cc4eb9f185109ed42c509b519662 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Fri, 17 Apr 2015 17:51:39 -0700 Subject: [PATCH] Also send bionicbb logs to a file. Change-Id: If9a6fdbe004e3b4bb7d868b7255f83c232759f80 --- tools/bionicbb/bionicbb.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/bionicbb/bionicbb.py b/tools/bionicbb/bionicbb.py index 20d6460ed..a786b27ed 100644 --- a/tools/bionicbb/bionicbb.py +++ b/tools/bionicbb/bionicbb.py @@ -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':