-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Turn on Traefik access logs #7109
Conversation
7e542b7
to
af1907b
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## develop #7109 +/- ##
===========================================
- Coverage 81.42% 81.40% -0.03%
===========================================
Files 364 364
Lines 39904 39904
Branches 3699 3699
===========================================
- Hits 32491 32483 -8
- Misses 7413 7421 +8
|
docker-compose.yml
Outdated
@@ -224,6 +224,22 @@ services: | |||
container_name: traefik | |||
restart: always | |||
command: | |||
- '--log.format=json' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't seem to work if use with docker-compose.https.yml
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. Fixed.
af1907b
to
3d840a5
Compare
This will be useful for debugging issues and gathering statistics. Use the JSON format, since that allows us to include more information than the traditional HTTP access logs. Switch the other logs to JSON as well, for ease of parsing. Add a cap on the size of the log in Docker compose, since the JSON logs are pretty bulky, and we don't want users to inadvertently run out of space.
3d840a5
to
e3ced1e
Compare
I added a log file size cap too. |
Motivation and context
This will be useful for debugging issues and gathering statistics.
Use the JSON format, since that allows us to include more information than the traditional HTTP access logs. Switch the other logs to JSON as well, for ease of parsing.
How has this been tested?
Manual testing.
Checklist
develop
branch[ ] I have created a changelog fragment[ ] I have updated the documentation accordingly[ ] I have added tests to cover my changes[ ] I have linked related issues (see GitHub docs)[ ] I have increased versions of npm packages if it is necessary(cvat-canvas,
cvat-core,
cvat-data and
cvat-ui)
License
Feel free to contact the maintainers if that's a concern.