logging: print warning message when not compiled with debug support
This commit is contained in:
parent
788e7fcd89
commit
0baf00e1c0
1 changed files with 2 additions and 0 deletions
|
@ -216,6 +216,8 @@ LOG_OpenSystemLog(void)
|
||||||
void LOG_SetDebugLevel(int level)
|
void LOG_SetDebugLevel(int level)
|
||||||
{
|
{
|
||||||
debug_level = level;
|
debug_level = level;
|
||||||
|
if (!DEBUG && level >= DEBUG_LEVEL_PRINT_DEBUG)
|
||||||
|
LOG(LOGS_WARN, LOGF_Logging, "Not compiled with full debugging support");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ================================================== */
|
/* ================================================== */
|
||||||
|
|
Loading…
Reference in a new issue