From 8ccba8ebfaca85017eb125c45b0f16ae358358a7 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 1 May 2014 16:26:39 +0200 Subject: 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. --- src/config.y | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/config.y') 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 { -- cgit v1.2.3