aboutsummaryrefslogtreecommitdiff
path: root/lib/daemon.c
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2011-07-28 10:19:42 -0700
committerJustin Pettit <jpettit@nicira.com>2011-08-01 13:23:19 -0700
commitc1a543a8d6d2847983b6b0defd1e19777da85715 (patch)
tree32c38ed3a899a4911e2337a0fe7e2f426bf23a83 /lib/daemon.c
parent733a287e17bf3764bf31c9528c6b6d30aafdec5f (diff)
vlog: Add a new log level "off".
Until now, "emer" has effectively been "off" because no messages were ever logged at "emer" level. Justin points out that it is useful to use "emer" for messages that indicate a fatal error. This commit makes that change and adds a new "off" level to really turn off all logging to a facility.
Diffstat (limited to 'lib/daemon.c')
-rw-r--r--lib/daemon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/daemon.c b/lib/daemon.c
index f4151ab1..ef1a24ef 100644
--- a/lib/daemon.c
+++ b/lib/daemon.c
@@ -410,7 +410,7 @@ close_standard_fds(void)
}
/* Disable logging to stderr to avoid wasting CPU time. */
- vlog_set_levels(NULL, VLF_CONSOLE, VLL_EMER);
+ vlog_set_levels(NULL, VLF_CONSOLE, VLL_OFF);
}
/* If daemonization is configured, then starts daemonization, by forking and