diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-02-11 10:07:19 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-02-11 10:07:19 -0500 |
commit | b1c353f9ee838891cfba6c53f97b6171f59c5fcb (patch) | |
tree | f7ddb052ad062a9be1dfd5168f3bb024b46a5c22 | |
parent | 99d06e2a7bd8c737d254333e12809de63f4ef547 (diff) | |
download | htc_utils-b1c353f9ee838891cfba6c53f97b6171f59c5fcb.tar.gz |
Add logging capability
-rw-r--r-- | htc_utils/CLI/batch.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/htc_utils/CLI/batch.py b/htc_utils/CLI/batch.py index efd9099..3a40b5a 100644 --- a/htc_utils/CLI/batch.py +++ b/htc_utils/CLI/batch.py @@ -30,6 +30,7 @@ parser.add_argument('--stdout', action='store_true', help='Output job to stdout parser.add_argument('-q', '--queue', action='store', default='', help='Queue main job N times') parser.add_argument('-b', '--subqueue', action='store', default='', help='Queue sub-job N tims') parser.add_argument('-s', '--subarg', action='append') +parser.add_argument('--logging', action='store', default='logs') # Sort by key, then by value sorted_args = sorted(nulljob.config.items(), key=lambda record: record[0], reverse=False) @@ -62,6 +63,9 @@ for key, value in vars(args).items(): continue job.attr(key, value) +if args.logging: + job.logging(args.logging, create=True) + # Manually assign important variables job.attr('executable', args.executable) job.attr('arguments', args.args) |