Skip to content

Stop logging packets and socket events - #184

Merged
boivie merged 1 commit into
webrtc:mainfrom
boivie:feature-stop-logging
Nov 17, 2026
Merged

boivie merged 1 commit into
webrtc:mainfrom
boivie:feature-stop-logging

Conversation

@boivie

@boivie boivie commented Nov 16, 2026

Copy link
Copy Markdown
Collaborator

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.

@DanilChapovalov DanilChapovalov left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

haven't completed the review, one comment so far

Comment thread src/testing/logging.rs Resolved
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
boivie force-pushed the feature-stop-logging branch from b10130f to b03380b Compare November 17, 2026 10:32
@boivie
boivie merged commit 47da144 into webrtc:main Nov 17, 2026
16 checks passed
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