summaryrefslogtreecommitdiff
path: root/playoff.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2019-07-26 10:09:46 +0200
committeremkael <emkael@tlen.pl>2019-07-26 10:09:46 +0200
commit1bd3c0c9de01555435559b242c864fcd2a712579 (patch)
tree6758cdc54f386d52c3947141b75d23931ef6134f /playoff.py
parent7879c847b3b1aa2a9b6775e38dbad22de5b37e96 (diff)
Logging facilities for GUI
Diffstat (limited to 'playoff.py')
-rw-r--r--playoff.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/playoff.py b/playoff.py
index 4e4d197..9531ca0 100644
--- a/playoff.py
+++ b/playoff.py
@@ -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)