]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
logging: print warning message when not compiled with debug support
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 9 Apr 2014 09:01:01 +0000 (11:01 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 9 Apr 2014 10:09:25 +0000 (12:09 +0200)
logging.c

index 8719a469575f8c7a1a0ec14c04ff946fdc5f8ea7..dff11f16df5af552788ac6c396379f96223472bb 100644 (file)
--- a/logging.c
+++ b/logging.c
@@ -216,6 +216,8 @@ LOG_OpenSystemLog(void)
 void LOG_SetDebugLevel(int level)
 {
   debug_level = level;
+  if (!DEBUG && level >= DEBUG_LEVEL_PRINT_DEBUG)
+    LOG(LOGS_WARN, LOGF_Logging, "Not compiled with full debugging support");
 }
 
 /* ================================================== */