You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the current implementation of probes, the default logger, loggs every access request. While this can be beneficial in some cases, it is only noise in the long run. I would like to be able to disable access logs.
Example log entry that i am refering to:
Instead of None it could also just a enable boolean, like settings.probes.access_logs.enabled = False.
Another alternative solution would be to drop the access logs to the DEBUG level, but this would make implementation more complex i think.
Please let me know which direction would be acceptable for a PR
The text was updated successfully, but these errors were encountered:
Problem
With the current implementation of probes, the default logger, loggs every access request. While this can be beneficial in some cases, it is only noise in the long run. I would like to be able to disable access logs.
Example log entry that i am refering to:
Proposal
Make access logs configurable as mentioned in the note here: https://docs.aiohttp.org/en/stable/logging.html#access-logs :
in https://github.com/nolar/kopf/blob/main/kopf/_core/engines/probing.py#L82C26-L82C35
Code
Additional information
Instead of
None
it could also just a enable boolean, likesettings.probes.access_logs.enabled = False
.Another alternative solution would be to drop the access logs to the DEBUG level, but this would make implementation more complex i think.
Please let me know which direction would be acceptable for a PR
The text was updated successfully, but these errors were encountered: