]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
syslog: treat SC_LOG_PERF messages as LOG_DEBUG
authorAlexander Gozman <a.gozman@securitycode.ru>
Thu, 9 Nov 2017 11:55:47 +0000 (11:55 +0000)
committerVictor Julien <victor@inliniac.net>
Mon, 20 Nov 2017 16:27:29 +0000 (17:27 +0100)
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.

src/util-debug.c

index 0d26cd79b7c20593f1d391b834ffb3484b8ece28..67466fb093413ad850b32789d6ca09e32d4f9577 100644 (file)
@@ -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: