summaryrefslogtreecommitdiffstats
path: root/src/config.y
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-05-01 16:26:39 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-05-01 16:26:39 +0200
commit8ccba8ebfaca85017eb125c45b0f16ae358358a7 (patch)
treec359b684bbc2ef0f0e60c190628fe4ab39599055 /src/config.y
parent8e589f3a3ad74dd4409632222c589aea7c0939a5 (diff)
downloadfastd-8ccba8ebfaca85017eb125c45b0f16ae358358a7.tar
fastd-8ccba8ebfaca85017eb125c45b0f16ae358358a7.zip
Remove support for log files
syslog/journald do a much better job at organizing logs, with the additional advantage of proper log rotation. If someone really wants to have a log file for fastd, they can just redirect stderr.
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 {