httpd: disable logging when logFormat = "none"
This commit is contained in:
parent
f5756aa3bb
commit
cab929c6c2
@ -130,7 +130,7 @@ let
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
||||||
loggingConf = ''
|
loggingConf = (if mainCfg.logFormat != "none" then ''
|
||||||
ErrorLog ${mainCfg.logDir}/error_log
|
ErrorLog ${mainCfg.logDir}/error_log
|
||||||
|
|
||||||
LogLevel notice
|
LogLevel notice
|
||||||
@ -141,7 +141,9 @@ let
|
|||||||
LogFormat "%{User-agent}i" agent
|
LogFormat "%{User-agent}i" agent
|
||||||
|
|
||||||
CustomLog ${mainCfg.logDir}/access_log ${mainCfg.logFormat}
|
CustomLog ${mainCfg.logDir}/access_log ${mainCfg.logFormat}
|
||||||
'';
|
'' else ''
|
||||||
|
ErrorLog /dev/null
|
||||||
|
'');
|
||||||
|
|
||||||
|
|
||||||
browserHacks = ''
|
browserHacks = ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user