From: Alexander Gozman Date: Mon, 26 Mar 2018 14:14:48 +0000 (+0000) Subject: Bug #2466: map SC_LOG_CONFIG level to syslogs LOG_DEBUG X-Git-Tag: suricata-4.0.5~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b29ddde84644d7071cccdd648c1efd7c67091b26;p=thirdparty%2Fsuricata.git Bug #2466: map SC_LOG_CONFIG level to syslogs LOG_DEBUG --- diff --git a/src/util-debug.c b/src/util-debug.c index 5d65d8a518..df8ca0035a 100644 --- a/src/util-debug.c +++ b/src/util-debug.c @@ -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; diff --git a/src/util-debug.h b/src/util-debug.h index e0e06420ce..40704218a2 100644 --- a/src/util-debug.h +++ b/src/util-debug.h @@ -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,