diff options
author | Ben Pfaff <blp@nicira.com> | 2011-07-28 10:19:42 -0700 |
---|---|---|
committer | Justin Pettit <jpettit@nicira.com> | 2011-08-01 13:23:19 -0700 |
commit | c1a543a8d6d2847983b6b0defd1e19777da85715 (patch) | |
tree | 32c38ed3a899a4911e2337a0fe7e2f426bf23a83 /lib/daemon.c | |
parent | 733a287e17bf3764bf31c9528c6b6d30aafdec5f (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.c | 2 |
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 |