summaryrefslogtreecommitdiffstats
path: root/src/options.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-08-27 17:57:06 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-08-27 17:57:06 +0200
commit81bff2df037a218cb973559a2bfbfbd259b1cbad (patch)
treebaeeeb599991e6de736e91f3b9e80f8603fd7bb0 /src/options.c
parente91f17de87175d822ae7e3d3238e7a0021a645ad (diff)
downloadfastd-81bff2df037a218cb973559a2bfbfbd259b1cbad.tar
fastd-81bff2df037a218cb973559a2bfbfbd259b1cbad.zip
Introduce new log level debug2 for potentially very frequent messages
Diffstat (limited to 'src/options.c')
-rw-r--r--src/options.c14
1 files changed, 8 insertions, 6 deletions
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);
}