From 5c1a2b53f99236ed77fa396e31efd290539fd2fc Mon Sep 17 00:00:00 2001 From: Alexander Gozman Date: Mon, 26 Mar 2018 14:14:48 +0000 Subject: [PATCH] Bug #2466: map SC_LOG_CONFIG level to syslogs LOG_DEBUG --- src/util-debug.c | 1 + src/util-debug.h | 2 ++ 2 files changed, 3 insertions(+) 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, -- 2.47.2