summaryrefslogtreecommitdiffstats
path: root/src/config.y
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.y')
-rw-r--r--src/config.y8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/config.y b/src/config.y
index 8c53b07..a448a00 100644
--- a/src/config.y
+++ b/src/config.y
@@ -248,7 +248,10 @@ mac: TOK_STRING TOK_USE TOK_STRING {
}
log: TOK_LEVEL log_level {
- conf.log_stderr_level = $2;
+ if (conf.log_syslog_level)
+ conf.log_syslog_level = $2;
+ if (conf.log_stderr_level || !conf.log_syslog_level)
+ conf.log_stderr_level = $2;
}
| TOK_TO TOK_STDERR maybe_log_level {
conf.log_stderr_level = $3;
@@ -262,9 +265,6 @@ log: TOK_LEVEL log_level {
conf.log_syslog_level = $5;
}
- | TOK_TO TOK_STRING maybe_log_level {
- fastd_config_add_log_file($2->str, $3);
- }
;
hide: TOK_IP TOK_ADDRESSES boolean {