vlog: Reduce syslog level of VLL_EMER messages to LOG_ALERT.
authorBen Pfaff <blp@nicira.com>
Thu, 24 Jul 2008 00:04:05 +0000 (17:04 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 24 Jul 2008 00:04:24 +0000 (17:04 -0700)
The LOG_EMERG log level sprayed these messages across every xterm and
console in the system, which was excessive.

lib/vlog.c

index 9641bd9..1cc24f8 100644 (file)
@@ -345,7 +345,7 @@ vlog(enum vlog_module module, enum vlog_level level, const char *message, ...)
 
         if (log_syslog) {
             static const int syslog_levels[VLL_N_LEVELS] = {
-                [VLL_EMER] = LOG_EMERG,
+                [VLL_EMER] = LOG_ALERT,
                 [VLL_ERR] = LOG_ERR,
                 [VLL_WARN] = LOG_WARNING,
                 [VLL_DBG] = LOG_DEBUG,