diff options
author | Dan Albert <danalbert@google.com> | 2015-04-17 17:51:39 -0700 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2015-04-17 17:57:15 -0700 |
commit | 21988a3b1607cc4eb9f185109ed42c509b519662 (patch) | |
tree | e8979e3b45797f371e1963f42408665dd7c712bd /tools/bionicbb | |
parent | d3fe4f1229ae0a50276b02d9c8e1efe8949a8726 (diff) | |
download | bionic-21988a3b1607cc4eb9f185109ed42c509b519662.zip bionic-21988a3b1607cc4eb9f185109ed42c509b519662.tar.gz bionic-21988a3b1607cc4eb9f185109ed42c509b519662.tar.bz2 |
Also send bionicbb logs to a file.
Change-Id: If9a6fdbe004e3b4bb7d868b7255f83c232759f80
Diffstat (limited to 'tools/bionicbb')
-rw-r--r-- | tools/bionicbb/bionicbb.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/bionicbb/bionicbb.py b/tools/bionicbb/bionicbb.py index 20d6460..a786b27 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': |