From 7941e22b66edea6f90fc1a170d0fce76b1befadb Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sun, 5 Mar 2017 12:48:52 +0800 Subject: manifest: Add logging support; avoid print messages --- bin/manifest.py | 5 +++++ bin/results.py | 5 +++++ 2 files changed, 10 insertions(+) (limited to 'bin') diff --git a/bin/manifest.py b/bin/manifest.py index 6b100f0..0e56036 100755 --- a/bin/manifest.py +++ b/bin/manifest.py @@ -18,9 +18,14 @@ and other structures in the YAML file. .. _`PyYAML`: http://pyyaml.org/ """ +import logging + from _context import acispy from acispy import manifest +logging.basicConfig(level=logging.INFO) + + if __name__ == "__main__": manifest.main() diff --git a/bin/results.py b/bin/results.py index d325dc3..3ea7750 100755 --- a/bin/results.py +++ b/bin/results.py @@ -10,9 +10,14 @@ Manage the analysis results in YAML format. """ +import logging + from _context import acispy from acispy import results +logging.basicConfig(level=logging.INFO) + + if __name__ == "__main__": results.main() -- cgit v1.2.2