diff options
-rw-r--r-- | src/console/init.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/console/init.c b/src/console/init.c index c1565a420f..422315ad2a 100644 --- a/src/console/init.c +++ b/src/console/init.c @@ -33,7 +33,7 @@ static int console_loglevel = CONFIG_DEFAULT_CONSOLE_LOGLEVEL; static inline int get_log_level(void) { - if (IS_ENABLED(CONSOLE_LEVEL_CONST)) + if (CONSOLE_LEVEL_CONST) return CONFIG_DEFAULT_CONSOLE_LOGLEVEL; return console_loglevel; @@ -51,6 +51,9 @@ static void init_log_level(void) { int debug_level = CONFIG_DEFAULT_CONSOLE_LOGLEVEL; + if (CONSOLE_LEVEL_CONST) + return; + get_option(&debug_level, "debug_level"); set_log_level(debug_level); |