From 5dfe2b1c7ba4dfb0056bb84a37f685a753850df6 Mon Sep 17 00:00:00 2001 From: Brett Smith Date: Thu, 22 Feb 2018 14:37:14 -0500 Subject: [PATCH] main: Actually set logger level based on user's configuration. --- import2ledger/__main__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/import2ledger/__main__.py b/import2ledger/__main__.py index 5d7896d..5def4c4 100644 --- a/import2ledger/__main__.py +++ b/import2ledger/__main__.py @@ -71,6 +71,7 @@ def setup_logger(logger, main_config, stream): handler = logging.StreamHandler(stream) handler.setFormatter(formatter) logger.addHandler(handler) + logger.setLevel(main_config.get_loglevel()) def decimal_context(base=decimal.BasicContext): context = base.copy()