Bug #2466: map SC_LOG_CONFIG level to syslogs LOG_DEBUG

pull/3317/head
Alexander Gozman 7 years ago committed by Victor Julien
parent 43617dc11f
commit 5c1a2b53f9

@ -140,6 +140,7 @@ static inline int SCLogMapLogLevelToSyslogLevel(int log_level)
case SC_LOG_INFO:
syslog_log_level = LOG_INFO;
break;
case SC_LOG_CONFIG:
case SC_LOG_DEBUG:
case SC_LOG_PERF:
syslog_log_level = LOG_DEBUG;

@ -45,6 +45,8 @@
/**
* \brief The various log levels
* NOTE: when adding new level, don't forget to update SCLogMapLogLevelToSyslogLevel()
* or it may result in logging to syslog with LOG_EMERG priority.
*/
typedef enum {
SC_LOG_NOTSET = -1,

Loading…
Cancel
Save