summaryrefslogtreecommitdiffstats
path: root/src/config.y
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/config.y
parente91f17de87175d822ae7e3d3238e7a0021a645ad (diff)
downloadfastd-81bff2df037a218cb973559a2bfbfbd259b1cbad.tar
fastd-81bff2df037a218cb973559a2bfbfbd259b1cbad.zip
Introduce new log level debug2 for potentially very frequent messages
Diffstat (limited to 'src/config.y')
-rw-r--r--src/config.y14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/config.y b/src/config.y
index 774d0db..e9ab3af 100644
--- a/src/config.y
+++ b/src/config.y
@@ -97,6 +97,7 @@
%token TOK_INFO
%token TOK_VERBOSE
%token TOK_DEBUG
+%token TOK_DEBUG2
%token TOK_FORWARD
%token TOK_YES
%token TOK_NO
@@ -253,12 +254,13 @@ maybe_log_level:
| { $$ = FASTD_DEFAULT_LOG_LEVEL; }
;
-log_level: TOK_FATAL { $$ = LOG_CRIT; }
- | TOK_ERROR { $$ = LOG_ERR; }
- | TOK_WARN { $$ = LOG_WARNING; }
- | TOK_INFO { $$ = LOG_NOTICE; }
- | TOK_VERBOSE { $$ = LOG_INFO; }
- | TOK_DEBUG { $$ = LOG_DEBUG; }
+log_level: TOK_FATAL { $$ = LL_FATAL; }
+ | TOK_ERROR { $$ = LL_ERROR; }
+ | TOK_WARN { $$ = LL_WARN; }
+ | TOK_INFO { $$ = LL_INFO; }
+ | TOK_VERBOSE { $$ = LL_VERBOSE; }
+ | TOK_DEBUG { $$ = LL_DEBUG; }
+ | TOK_DEBUG2 { $$ = LL_DEBUG2; }
;
interface: TOK_STRING { free(conf->ifname); conf->ifname = strdup($1->str); }