Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Fix typo on bufferingSize for access logs #753

Merged
merged 1 commit into from
Dec 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions traefik/templates/_podtemplate.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -485,8 +485,8 @@
{{- if .access.filePath }}
- "--accesslog.filepath={{ .access.filePath }}"
{{- end }}
{{- if .access.bufferingsize }}
- "--accesslog.bufferingsize={{ .access.bufferingsize }}"
{{- if .access.bufferingSize }}
- "--accesslog.bufferingsize={{ .access.bufferingSize }}"
{{- end }}
{{- if .access.filters }}
{{- if .access.filters.statuscodes }}
Expand Down
4 changes: 4 additions & 0 deletions traefik/tests/traefik-config_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,7 @@ tests:
enabled: true
format: json
filePath: "/data/log"
bufferingSize: 100
asserts:
- contains:
path: spec.template.spec.containers[0].args
Expand All @@ -402,3 +403,6 @@ tests:
- contains:
path: spec.template.spec.containers[0].args
content: "--accesslog.filepath=/data/log"
- contains:
path: spec.template.spec.containers[0].args
content: "--accesslog.bufferingsize=100"
3 changes: 2 additions & 1 deletion traefik/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,8 @@ logs:
# By default, the logs use a text format (common), but you can
# also ask for the json format in the format option
# format: json
# By default, the level is set to ERROR. Alternative logging levels are DEBUG, PANIC, FATAL, ERROR, WARN, and INFO.
# By default, the level is set to ERROR.
# Alternative logging levels are DEBUG, PANIC, FATAL, ERROR, WARN, and INFO.
level: ERROR
access:
# To enable access logs
Expand Down