From a03fd8b8be588789686e92008b8ed80f63340698 Mon Sep 17 00:00:00 2001 From: Andrew Nikitin Date: Fri, 9 Jan 2015 14:19:03 +0500 Subject: 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. --- config/havp/havp.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config/havp') 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]}"; -- cgit v1.2.3