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

Filtering for Request Logger #2010

Closed
threema-danilo opened this issue Dec 9, 2021 · 1 comment
Closed

Filtering for Request Logger #2010

threema-danilo opened this issue Dec 9, 2021 · 1 comment
Labels
request Request for new functionality

Comments

@threema-danilo
Copy link

Is your feature request motivated by a concrete problem? Please describe.

I run a Rocket application in a Docker container. The application has a healthcheck endpoint that is queried multiple times per minute. This means that the logs are full of messages like these:

2021-12-09 08:18:57  INFO   GET /healthcheck/: [rocket::server:203]
2021-12-09 08:18:57  INFO   Matched: (healthcheck) GET /healthcheck [rocket::server:276]
2021-12-09 08:18:57  INFO   Outcome: Success [rocket::server:286]
2021-12-09 08:18:57  INFO   Response succeeded. [rocket::server:116]

Is there a way to filter request logs, for example by URL or by handler?

Why this feature can't or shouldn't live outside of Rocket

Logging is currently not configurable, I think. See #21.

Ideal Solution

It would be nice if certain URLs or handlers could be excluded from logging, either through the config file, or through a filter function that can be registered.

Additional Context

Potentially related to #1098 and #1288.

@threema-danilo threema-danilo added the request Request for new functionality label Dec 9, 2021
@SergioBenitez
Copy link
Member

There isn't, yet. #21 should resolve this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
request Request for new functionality
Projects
None yet
Development

No branches or pull requests

2 participants