]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
Bug #2466: map SC_LOG_CONFIG level to syslogs LOG_DEBUG
authorAlexander Gozman <a.gozman@securitycode.ru>
Mon, 26 Mar 2018 14:14:48 +0000 (14:14 +0000)
committerVictor Julien <victor@inliniac.net>
Mon, 16 Jul 2018 10:51:24 +0000 (12:51 +0200)
src/util-debug.c
src/util-debug.h

index 5d65d8a518b0b480050d2a83510d552f1e8b7abd..df8ca0035a942f953650726ff33470bb881905ae 100644 (file)
@@ -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;
index e0e06420ce87ec536d8cfd9e9bb0e4fa51e9c548..40704218a2f4d29275da5f6d001f41ebf339a687 100644 (file)
@@ -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,