logging: print warning message when not compiled with debug support

This commit is contained in:
Miroslav Lichvar 2014-04-09 11:01:01 +02:00
parent 788e7fcd89
commit 0baf00e1c0

View file

@ -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");
}
/* ================================================== */