1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

httpd: disable logging when logFormat = "none"

This commit is contained in:
System administrator 2014-07-10 14:32:08 +02:00
parent f5756aa3bb
commit cab929c6c2

View file

@ -130,7 +130,7 @@ let
'';
loggingConf = ''
loggingConf = (if mainCfg.logFormat != "none" then ''
ErrorLog ${mainCfg.logDir}/error_log
LogLevel notice
@ -141,7 +141,9 @@ let
LogFormat "%{User-agent}i" agent
CustomLog ${mainCfg.logDir}/access_log ${mainCfg.logFormat}
'';
'' else ''
ErrorLog /dev/null
'');
browserHacks = ''