From 0861591c380a54e13c8cebddea5ac7ba225eeef2 Mon Sep 17 00:00:00 2001 From: George McCabe <23407799+georgemccabe@users.noreply.github.com> Date: Tue, 7 Nov 2023 15:34:16 -0700 Subject: [PATCH] prevent debug message after last log message for checking config variable that was moved to the [runtime] section --- metplus/util/string_manip.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/metplus/util/string_manip.py b/metplus/util/string_manip.py index ee23b4fc9c..19342610cc 100644 --- a/metplus/util/string_manip.py +++ b/metplus/util/string_manip.py @@ -619,7 +619,7 @@ def log_terminal_includes_info(config): @returns True if log level is set to include INFO messages. False if not. """ log_terminal_level = logging.getLevelName( - config.getstr('config', 'LOG_LEVEL_TERMINAL', - config.getstr('runtime', 'LOG_LEVEL_TERMINAL')) + config.getstr_nocheck('config', 'LOG_LEVEL_TERMINAL', + config.getstr('runtime', 'LOG_LEVEL_TERMINAL')) ) return log_terminal_level <= logging.INFO