From 0baf00e1c007d0e4702c79f3a2b531e16be1911b Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Wed, 9 Apr 2014 11:01:01 +0200 Subject: [PATCH] logging: print warning message when not compiled with debug support --- logging.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/logging.c b/logging.c index 8719a46..dff11f1 100644 --- 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"); } /* ================================================== */