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

Change socket serializer/version logs to warning. #5534

Merged

Conversation

aselder
Copy link
Contributor

@aselder aselder commented Jul 27, 2023

Often times, random bots or scanners hit URLs with garbage params. When this happens with a Phoenix socket URL, serializer negotiaiton can fail and Phoenix will log this event.

Currently this happens at the :error level. In most cases, this is not an error conditions, but an expected failure due to garbage in, garbage out. As such, it's probably more appropriate for this to be at the :warning level.

Often times, random bots or scanners hit URLs with garbage params.
When this happens with a Phoenix socket URL, serializer negotiaiton can
fail and Phoenix will log this event.

Currently this happens at the `:error` level. In most cases, this is
not an error conditions, but an expected failure due to garbage in,
garbage out. As such, it's probably more appropriate for this to be
at the `:warning` level.
@chrismccord chrismccord merged commit a9cd1fd into phoenixframework:main Aug 2, 2023
3 of 4 checks passed
@chrismccord
Copy link
Member

❤️❤️❤️🐥🔥

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