-
Notifications
You must be signed in to change notification settings - Fork 5
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
Request: Change Log Level for Middleware Request Logging #292
Comments
This is the (sane) default. You can change that default log level via command line parameters (e.g., |
Alternatively, we could consider introducing a dedicated access log, similar to what Nginx uses. This access log could be turned off or redirected to |
Hm, I would not want to go that route: It's pretty standard nowadays with systemd (and others) to have services "log" to |
for me Also i will make use of SSE to reduce the number of requests to wfx from our client in future, until than i will use the |
Hm, can you explain what it is that you want to see in the logs, i.e., what the behavior should be? Seems like you want "subsystems" to have different log levels, inferred from your description of running with |
I think the main goal is to reduce the log output/noise (but preserving all the other useful INFO messages), especially when many clients (e.g., thousands) poll every X seconds for new jobs (this feedback was also given during a conference).
Yes, this isn't a contradiction though. We could, for example, dedicate
We already support JSON as a structured logging format, which is compatible with popular log aggregation tools. I agree that logging in a structured way to journald would be beneficial, and I've prepared a MR (see #295) for this. However, this doesn't directly address the original poster's issue, because the "noise" is still there. |
exactly |
Description
Currently, wfx logs request in the middleware logging function with info level. This can result in excessive log noise in production environments.
wfx/middleware/logging/log.go
Line 76 in 8cc2b1f
Suggested Change
Modify the log level from
info
todebug
to reduce unnecessary log volume in production while still allowing detailed request logging for debugging purposes.The text was updated successfully, but these errors were encountered: