diff options
author | emkael <emkael@tlen.pl> | 2019-07-26 10:09:46 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2019-07-26 10:09:46 +0200 |
commit | 1bd3c0c9de01555435559b242c864fcd2a712579 (patch) | |
tree | 6758cdc54f386d52c3947141b75d23931ef6134f /playoff.py | |
parent | 7879c847b3b1aa2a9b6775e38dbad22de5b37e96 (diff) |
Logging facilities for GUI
Diffstat (limited to 'playoff.py')
-rw-r--r-- | playoff.py | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -1,4 +1,4 @@ -import traceback +import logging, traceback from jfr_playoff.filemanager import PlayoffFileManager from jfr_playoff.generator import PlayoffGenerator @@ -26,9 +26,10 @@ def main(): type=str, nargs='?', default=None) arguments = arg_parser.parse_args() - PlayoffLogger.setup('ERROR' if arguments.quiet else ( - 'INFO' if arguments.verbose else ( - 'DEBUG' if arguments.debug else 'WARNING'))) + PlayoffLogger.setup( + level=logging.ERROR if arguments.quiet else ( + logging.INFO if arguments.verbose else ( + logging.DEBUG if arguments.debug else logging.WARNING))) PlayoffLogger.get().info('started with arguments: %s', arguments) |