diff options
author | Bjoern Riemer <bjoern.riemer@tu-berlin.de> | 2016-01-13 12:37:02 +0100 |
---|---|---|
committer | Bjoern Riemer <bjoern.riemer@tu-berlin.de> | 2016-01-13 12:37:02 +0100 |
commit | 77766845052fb3e88b40717988c77c1964cb4a90 (patch) | |
tree | 45521d89e991f4b525557053ac7bc389c1e7d1dd /voctocore | |
parent | 709feffbb54c651869ea9e952600a4173e324fc9 (diff) |
add --timestamp arg to voctocore
Diffstat (limited to 'voctocore')
-rwxr-xr-x | voctocore/voctocore.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/voctocore/voctocore.py b/voctocore/voctocore.py index 3a4125a..bf9b973 100755 --- a/voctocore/voctocore.py +++ b/voctocore/voctocore.py @@ -56,8 +56,9 @@ class Voctocore(object): def main(): # configure logging docolor = (Args.color == 'always') or (Args.color == 'auto' and sys.stderr.isatty()) + timestamp = Args.timestamp > 0 - handler = LogHandler(docolor) + handler = LogHandler(docolor,timestamp) logging.root.addHandler(handler) if Args.verbose >= 2: |