From 6e6dead680fa7d437731835c6fe069e830ed84b1 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Mon, 12 Oct 2015 13:16:04 +0200 Subject: [PATCH] logging: don't ignore message severity with debug support The severity was fixed for all messages to LOGS_DEBUG. This was broken in commit 7b2430fc3c44bc7f5fc3b6ca2b478cdea77ef841. --- logging.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logging.h b/logging.h index ba28d97..b480c42 100644 --- a/logging.h +++ b/logging.h @@ -47,7 +47,7 @@ extern int log_debug_enabled; #if DEBUG > 0 #define LOG_MESSAGE(severity, facility, ...) \ - LOG_Message(LOGS_DEBUG, facility, __LINE__, __FILE__, FUNCTION_NAME, __VA_ARGS__); + LOG_Message(severity, facility, __LINE__, __FILE__, FUNCTION_NAME, __VA_ARGS__); #else #define LOG_MESSAGE(severity, facility, ...) \ LOG_Message(severity, __VA_ARGS__);