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

Restore the ability to filter spammy log messages #530

Merged
merged 3 commits into from
Jul 27, 2023

Conversation

Spindel
Copy link
Contributor

@Spindel Spindel commented Jul 27, 2023

This restores the ability to filter out spammy log messages with tracing-subscriber, and cleans out the env_logger dependencies that were lingering.

I also move some of the worst offender log messages into their own target so they can be filtered without cutting out other log messages that are actually useful warnings.

Under heavy load they can happen thousands of times per second, and
should generally be considered a nuisance at best. This marks the state
discard as an info rather than a warning, and moves all the messages
into their own log-target, so they can be filtered separately from the
more relevant warnings.

Signed-off-by: D.S. Ljungmark <spider@skuggor.se>
When moving to tracing-subscriber for logging, the env_logger
dependencies were left around, this cuts them out as dead code.

Signed-off-by: D.S. Ljungmark <spider@skuggor.se>
This restores the RUST_LOG filters from env_logger but now with the
tracing subscriber setup. The filters are chained so commandline options
mark the default in case either option is set, which should be the path
of least confusion for users.  ( RUST_LOG setting level to debug, and
commandline to warning is an odd user case, and I don't know what a user
who does that is expecting. )

It also bumps the version number as a fix to see which versions have
which behaviour.

Signed-off-by: D.S. Ljungmark <spider@skuggor.se>
@Spindel
Copy link
Contributor Author

Spindel commented Jul 27, 2023

tests seem flaky for some reason. "Address already in use" ought to not be my fault here, unless something seriously is fishy in the state of Denmark

@levkk levkk merged commit 328108a into postgresml:main Jul 27, 2023
@Spindel Spindel deleted the logging-fixes branch July 27, 2023 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants