ydb-go-sdk
ydb-go-sdk copied to clipboard
dev: Remove `io.EOF` and grpc stream context cancellation from `WARN` log level
Hi! I noticed that my logs are littered with such messages:
2024-08-08 11:55:32.778 WARN 'ydb.driver.conn.stream.RecvMsg' => failed {"error":"EOF","latency":"31.691µs","version":"3.76.2"}
2024-08-08 11:55:32.779 WARN 'ydb.driver.conn.stream.RecvMsg' => failed {"error":"transport/Canceled (code = 1, source error = \"rpc error: code = Canceled desc = context canceled\", address: \"localhost:2136\", nodeID = 1) at `github.com/ydb-platform/ydb-go-sdk/v3/internal/conn.(*grpcClientStream).RecvMsg(grpc_client_stream.go:174)`","latency":"7.677643ms","version":"3.76.2"}
And these ones appear every time when a call any query with Query()
client. It seems to me that this is not an extraordinary behaviour, so I'd like to see them in the TRACE
or DEBUG
level at least.
If context was cancelled by some unusual cause, I would like to see such a cause in WARN
level or higher, not just context canceled
.