mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 19:55:07 -05:00
logging: print warning message when not compiled with debug support
This commit is contained in:
@@ -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");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ================================================== */
|
/* ================================================== */
|
||||||
|
|||||||
Reference in New Issue
Block a user