From 7ad2b217df9b3d7746c7acc3e78b9d7e6c487d76 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Wed, 18 Sep 2019 15:15:41 +0200 Subject: [PATCH] fix logging all in error level --- lib/src/common/log_filter.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/src/common/log_filter.cc b/lib/src/common/log_filter.cc index 77b4d15ec..712589c65 100644 --- a/lib/src/common/log_filter.cc +++ b/lib/src/common/log_filter.cc @@ -119,24 +119,24 @@ void log_filter::console(const char * message, ...) { #define all_log_expand(log_level) \ do { \ - if (level >= LOG_LEVEL_ERROR) { \ + if (level >= log_level) { \ char args_msg[char_buff_size]; \ va_list args; \ va_start(args, message); \ if (vsnprintf(args_msg, char_buff_size, message, args) > 0) \ - all_log(LOG_LEVEL_ERROR, tti, args_msg); \ + all_log(log_level, tti, args_msg); \ va_end(args); \ } \ } while (0) #define all_log_hex_expand(log_level) \ do { \ - if (level >= LOG_LEVEL_ERROR) { \ + if (level >= log_level) { \ char args_msg[char_buff_size]; \ va_list args; \ va_start(args, message); \ if (vsnprintf(args_msg, char_buff_size, message, args) > 0) \ - all_log(LOG_LEVEL_ERROR, tti, args_msg, hex, size); \ + all_log(log_level, tti, args_msg, hex, size); \ va_end(args); \ } \ } while (0)