From 81bff2df037a218cb973559a2bfbfbd259b1cbad Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 27 Aug 2013 17:57:06 +0200 Subject: Introduce new log level debug2 for potentially very frequent messages --- src/options.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src/options.c') diff --git a/src/options.c b/src/options.c index 2641b1b..1462b9f 100644 --- a/src/options.c +++ b/src/options.c @@ -115,17 +115,19 @@ static void option_group(fastd_context_t *ctx UNUSED, fastd_config_t *conf, cons static int parse_log_level(fastd_context_t *ctx, const char *arg) { if (!strcmp(arg, "fatal")) - return LOG_CRIT; + return LL_FATAL; else if (!strcmp(arg, "error")) - return LOG_ERR; + return LL_ERROR; else if (!strcmp(arg, "warn")) - return LOG_WARNING; + return LL_WARN; else if (!strcmp(arg, "info")) - return LOG_NOTICE; + return LL_INFO; else if (!strcmp(arg, "verbose")) - return LOG_INFO; + return LL_VERBOSE; else if (!strcmp(arg, "debug")) - return LOG_DEBUG; + return LL_DEBUG; + else if (!strcmp(arg, "debug2")) + return LL_DEBUG2; else exit_error(ctx, "invalid log level `%s'", arg); } -- cgit v1.2.3