Skip to content

[feature] MySQL warnings granular control #311

@judgedred

Description

@judgedred

Is your feature request related to a problem? Please describe.
There is a log when the server returns some warning for the query:

io.asyncer.r2dbc.mysql.client.ReactorNettyClient$ResponseSink: Response: OkMessage{isEndOfRows=false, affectedRows=0, lastInsertId=0, serverStatuses=2, warnings=1, information='', systemVariables={}}, reports 1 warning(s)

This can be quite useful to spot any potential problems.
However, if you know what is the problem, for example you are using INSERT IGNORE intentionally, these logs are spamming the output.
The only option you have is to suppress them by disabling INFO log level.
This would disable them globally and you loose that kind of a watchdog for other queries.

Describe the solution you'd like
It would be nice to have some option to suppress warning logs for the specific query.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions