diff options
Diffstat (limited to 'libdaemon')
-rw-r--r-- | libdaemon/server/daemon-log.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/libdaemon/server/daemon-log.c b/libdaemon/server/daemon-log.c index 5ea5cdc76..abe602b3f 100644 --- a/libdaemon/server/daemon-log.c +++ b/libdaemon/server/daemon-log.c @@ -160,12 +160,18 @@ static int _parse_one(log_state *s, int outlet, const char *type, int enable) if (!strcmp(type, "all")) for (i = 0; i < 32; ++i) daemon_log_enable(s, outlet, i, enable); + else if (!strcmp(type, "fatal")) + daemon_log_enable(s, outlet, DAEMON_LOG_FATAL, enable); + else if (!strcmp(type, "error")) + daemon_log_enable(s, outlet, DAEMON_LOG_ERROR, enable); + else if (!strcmp(type, "warn")) + daemon_log_enable(s, outlet, DAEMON_LOG_WARN, enable); + else if (!strcmp(type, "warn")) + daemon_log_enable(s, outlet, DAEMON_LOG_INFO, enable); else if (!strcmp(type, "wire")) daemon_log_enable(s, outlet, DAEMON_LOG_WIRE, enable); else if (!strcmp(type, "debug")) daemon_log_enable(s, outlet, DAEMON_LOG_DEBUG, enable); - else - return 0; return 1; } |