Repository navigation
Stop logging packets and socket events - #184
Merged
Merged
Conversation
DanilChapovalov
left a comment
Collaborator
There was a problem hiding this comment.
haven't completed the review, one comment so far
Every sent and received packet and every socket event was logged at info level through the log crate. Callers got these logs if they had configured a logger and enabled info level logging for this library. Everything that was logged passes through the public API, so callers that want these logs can generate them outside the library: sent packets and events are returned by poll_event, and received packets are passed in through handle_input.
boivie
force-pushed
the
feature-stop-logging
branch
from
November 17, 2026 10:32
b10130f to
b03380b
Compare
DanilChapovalov
approved these changes
Nov 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Every sent and received packet and every socket event was logged at info level through the log crate. Callers got these logs if they had configured a logger and enabled info level logging for this library.
Everything that was logged passes through the public API, so callers that want these logs can generate them outside the library: sent packets and events are returned by poll_event, and received packets are passed in through handle_input.
The logs are still useful when debugging failing unit tests, so LoggingEvents and log_packet are moved to the testing module and are only used in test builds.