diff options
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) |