aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Nikitin <andrey.b.nikitin@gmail.com>2015-01-09 14:19:03 +0500
committerAndrew Nikitin <andrey.b.nikitin@gmail.com>2015-01-09 14:19:03 +0500
commita03fd8b8be588789686e92008b8ed80f63340698 (patch)
tree043932700a9e902c250bfc813811ffcb250c37ae
parent4510e208048adb9cc517000388e46b433ae8f23e (diff)
downloadpfsense-packages-a03fd8b8be588789686e92008b8ed80f63340698.tar.gz
pfsense-packages-a03fd8b8be588789686e92008b8ed80f63340698.tar.bz2
pfsense-packages-a03fd8b8be588789686e92008b8ed80f63340698.zip
HAVP configurator "Log" option now really using
HAVP webConfigurator "Log" checkbox not using at all. Error logs was written always, regardless of "Log" option. Change this behaviour to reflect configurator option. Note: HAVP access log writes always because of virus attentions.
-rw-r--r--config/havp/havp.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/havp/havp.inc b/config/havp/havp.inc
index 8118f695..1648bcb0 100644
--- a/config/havp/havp.inc
+++ b/config/havp/havp.inc
@@ -633,7 +633,7 @@ function havp_config_havp()
# log
$conf[] = "\n# log ";
$conf[] = "ACCESSLOG " . HVDEF_HAVP_ACCESSLOG;
- $conf[] = "ERRORLOG " . HVDEF_HAVP_ERRORLOG;
+ $conf[] = "ERRORLOG " . ($havp_config[F_LOG] === 'true' ? HVDEF_HAVP_ERRORLOG : "/dev/null");
# syslog
$conf[] = "\n# syslog";
$conf[] = "USESYSLOG {$havp_config[F_SYSLOG]}";