Thanks to visit codestin.com
Credit goes to github.com

Skip to content

FEATURE: Don't log "Request handled" at INFO level or at all #2881

Description

@brassy-endomorph

Is your feature request related to a problem? Please describe.

My logs are full of tens of thousands of lines of this:

2023-02-09 18:58:31.203886 [info     ] Request handled                [aleph.views.context] request_logging=True
2023-02-09 18:58:34.199946 [info     ] Request handled                [aleph.views.context] request_logging=True
2023-02-09 18:58:38.437104 [info     ] Request handled                [aleph.views.context] request_logging=True
2023-02-09 18:58:41.823346 [info     ] Request handled                [aleph.views.context] request_logging=True
2023-02-09 18:58:45.069283 [info     ] Request handled                [aleph.views.context] request_logging=True
2023-02-09 18:58:50.892317 [info     ] Request handled                [aleph.views.context] request_logging=True
2023-02-09 18:58:53.096307 [info     ] Request handled                [aleph.views.context] request_logging=True
2023-02-09 18:58:56.886015 [info     ] Request handled                [aleph.views.context] request_logging=True
2023-02-09 18:59:00.088359 [info     ] Request handled                [aleph.views.context] request_logging=True
2023-02-09 18:59:03.265826 [info     ] Request handled                [aleph.views.context] request_logging=True
2023-02-09 18:59:08.245065 [info     ] Request handled                [aleph.views.context] request_logging=True
2023-02-09 18:59:20.681299 [info     ] Request handled                [aleph.views.context] request_logging=True

This is at the info level. If anything it should be at the debug level. But since it has absolutely no information, it is not actionable in anyway other than checking that the reverse proxy / ingress / router or whatever is even working.

Describe the solution you'd like

Please just remove these log messages.

Describe alternatives you've considered

Monkey-patching it? idk.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestRequests for new features or enhancements of existing featuresgood first issueIssues that are well suited for first-time contributors

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions