From: Alexander Gozman Date: Thu, 9 Nov 2017 11:55:47 +0000 (+0000) Subject: syslog: treat SC_LOG_PERF messages as LOG_DEBUG X-Git-Tag: suricata-4.0.2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63e1371c8bd26f684a3e9afe3849e1d737435194;p=thirdparty%2Fsuricata.git syslog: treat SC_LOG_PERF messages as LOG_DEBUG SCLogMapLogLevelToSyslogLevel(): treat SC_LOG_PERF messages as LOG_DEBUG Previously, when logging to syslog, perf events had a default EMERG priority, which could be a bit confusing. --- diff --git a/src/util-debug.c b/src/util-debug.c index 0d26cd79b7..67466fb093 100644 --- a/src/util-debug.c +++ b/src/util-debug.c @@ -141,6 +141,7 @@ static inline int SCLogMapLogLevelToSyslogLevel(int log_level) syslog_log_level = LOG_INFO; break; case SC_LOG_DEBUG: + case SC_LOG_PERF: syslog_log_level = LOG_DEBUG; break; default: