From aa0266d5d6a4710bf45597039e666633f8169918 Mon Sep 17 00:00:00 2001 From: eht17 <eht17@inf.ufpr.br> Date: Mon, 27 May 2019 11:48:52 -0300 Subject: [PATCH] add debug and error on set logging level options --- database/actions.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/database/actions.py b/database/actions.py index 29b4962..53d3c64 100644 --- a/database/actions.py +++ b/database/actions.py @@ -44,8 +44,10 @@ def set_logging_level(logging_level): '''Modify priority level required for output messages''' logging_level = logging_level.upper() logging_level = { + 'DEBUG':logging.DEBUG, 'INFO':logging.INFO, 'WARNING':logging.WARNING, + 'ERROR':logging.ERROR, }[logging_level] database_table_logger.setLevel(logging_level) -- GitLab