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.1.0-rc1~172 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F3317%2Fhead;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 ba15bf21f5..c7c5bbba5c 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 cfd096660c..85b40bcb25 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,