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

Skip to content

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.

Spindel added 3 commits July 27, 2023 13:55
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
@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