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

chore(bolt-sidecar): log unexpected websocket messages #680

Merged
merged 2 commits into from
Jan 15, 2025

Conversation

estensen
Copy link
Contributor

Help detect protocol misuse

@estensen estensen requested a review from thedevbirb January 15, 2025 09:51
Comment on lines 226 to 230
warn!(
?rpc_url,
bytes_len = data.len(),
"received unexpected binary message"
);
Copy link
Collaborator

@merklefruit merklefruit Jan 15, 2025

Choose a reason for hiding this comment

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

I suggest turning this down to debug! or trace! level, as it would be great to keep warnings for stuff that we need to take action or be careful of. same for Message::Frame

Copy link
Contributor

Choose a reason for hiding this comment

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

Agreed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@thedevbirb thedevbirb merged commit 7b2fbd0 into unstable Jan 15, 2025
3 checks passed
@thedevbirb thedevbirb deleted the log-unexpected branch January 15, 2025 11:49
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.

3 participants