]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
logging: don't ignore message severity with debug support
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 12 Oct 2015 11:16:04 +0000 (13:16 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Mon, 12 Oct 2015 11:41:41 +0000 (13:41 +0200)
The severity was fixed for all messages to LOGS_DEBUG. This was broken
in commit 7b2430fc3c44bc7f5fc3b6ca2b478cdea77ef841.

logging.h

index ba28d97fa7ee396406254b69dfd5f274fdad4074..b480c420dc33d4bacc722271589d01f804118f89 100644 (file)
--- 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__);