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

source-mysql: Stop logging scary collation error messages #2050

Merged
merged 1 commit into from
Oct 14, 2024

Conversation

willdonnelly
Copy link
Member

@willdonnelly willdonnelly commented Oct 14, 2024

Description:

This isn't an error, it's not even a warning. We should improve this and track the server default collation as described in the new comment eventually, but for now it should suffice to just assume the default MySQL charset here.

Since that's what we already did, the only real impact of this change is to change the log message and severity in the specific case where the collation name is "".

Notes for reviewers:

This is a bit of a stopgap until I have time to add the aforementioned "keep track of the server default collation and use it here" logic. But it's a stopgap that prevents us logging dozens or hundreds of scary looking error messages which users might see and be justifiably concerned by, when really this is totally fine and benign in basically all circumstances.


This change is Reviewable

This isn't an error, it's not even a warning. We should improve
this and track the server default collation as described in the
new comment _eventually_, but for now it should suffice to just
assume the default MySQL charset here.

Since that's what we already did, the only real impact of this
change is to change the log message and severity in the specific
case where the collation name is `""`.
@willdonnelly willdonnelly added the change:unplanned Unplanned change, useful for things like doc updates label Oct 14, 2024
@willdonnelly willdonnelly requested a review from a team October 14, 2024 18:08
@willdonnelly willdonnelly merged commit 1aa6220 into main Oct 14, 2024
52 of 53 checks passed
@willdonnelly willdonnelly deleted the wgd/mysql-collation-error-20241014 branch October 14, 2024 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
change:unplanned Unplanned change, useful for things like doc updates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants