Ability to separately disable access log in http and stream contexts
Two new configuration options: `disable-http-access-log` `disable-stream-access-log` Should resolve issue with enormous amount of `TCP 200` useless entries in logs Signed-off-by: Andrey Voronkov <voronkovaa@gmail.com>
This commit is contained in:
parent
46cca5ad40
commit
bced1ed8b8
2 changed files with 13 additions and 4 deletions
|
|
@ -315,7 +315,7 @@ http {
|
|||
default 1;
|
||||
}
|
||||
|
||||
{{ if $cfg.DisableAccessLog }}
|
||||
{{ if or $cfg.DisableAccessLog $cfg.DisableHTTPAccessLog }}
|
||||
access_log off;
|
||||
{{ else }}
|
||||
{{ if $cfg.EnableSyslog }}
|
||||
|
|
@ -684,7 +684,7 @@ stream {
|
|||
|
||||
log_format log_stream '{{ $cfg.LogFormatStream }}';
|
||||
|
||||
{{ if $cfg.DisableAccessLog }}
|
||||
{{ if or $cfg.DisableAccessLog $cfg.DisableStreamAccessLog }}
|
||||
access_log off;
|
||||
{{ else }}
|
||||
access_log {{ $cfg.AccessLogPath }} log_stream {{ $cfg.AccessLogParams }};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue