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

Always log Err as error! is too severe. #320

Open
wuerges opened this issue Nov 5, 2024 · 0 comments
Open

Always log Err as error! is too severe. #320

wuerges opened this issue Nov 5, 2024 · 0 comments

Comments

@wuerges
Copy link

wuerges commented Nov 5, 2024

Currently, the mysql_async crate is emitting all Err variants as error! events.

Most of the time this is desirable, but sometimes this level is too severe.

When inserting duplicate values, deleting a value that is in use by another table, matching the Err variant is very convenient. A query that returns Err could be a benign error that is handled by the application, and a lower event level would be better.

This PR helps explain the issue, and attempts to solve it:
#319

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

No branches or pull requests

1 participant