diff options
author | Aaron LI <aaronly.me@outlook.com> | 2017-03-05 12:48:52 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@outlook.com> | 2017-03-05 12:48:52 +0800 |
commit | 7941e22b66edea6f90fc1a170d0fce76b1befadb (patch) | |
tree | 915c029e58082327749f10bc6f3c9a31bbb80637 /bin | |
parent | fd5ba7ad61a8c7c9aad6b3f1404d819ae21085d1 (diff) | |
download | chandra-acis-analysis-7941e22b66edea6f90fc1a170d0fce76b1befadb.tar.bz2 |
manifest: Add logging support; avoid print messages
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/manifest.py | 5 | ||||
-rwxr-xr-x | bin/results.py | 5 |
2 files changed, 10 insertions, 0 deletions
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() |