-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
stream warning logging in v3 rpc pkg #9085
Comments
an example of bad logging
|
Those are now debug level #9080 but we could make it warning after filtering out those context errors. |
I think we should make non expected errors at warning level, and expected ones (like user cancellation) at debug level. |
@spzala Do you want to work on this? It will be pretty straightforward. Please refer to https://github.com/coreos/etcd/blob/c699470d3b27d2e968df313110255734105687fa/clientv3/client.go#L532-L554 on error parsing. |
@gyuho sure, I was actually thinking the same :-). Thanks much for the above info, that will help! |
The context error with cancel code is typically for user cancellation which should be at debug level. For other error codes we should display a warning. Fixes etcd-io#9085
The context errors with Canceled or DeadlineExceeded code are typically for user cancellation which should be at debug level. For other error codes we should display a warning. Fixes etcd-io#9085
The context errors with Canceled or DeadlineExceeded code are typically for user cancellation which should be at debug level. For other error codes we should display a warning. Fixes etcd-io#9085
The context error with cancel code is typically for user cancellation which should be at debug level. For other error codes we should display a warning. Fixes etcd-io#9085
The context error with cancel code is typically for user cancellation which should be at debug level. For other error codes we should display a warning. Fixes etcd-io#9085
The context error with cancel code is typically for user cancellation which should be at debug level. For other error codes we should display a warning. Fixes etcd-io#9085
The context error with cancel code is typically for user cancellation which should be at debug level. For other error codes we should display a warning. Fixes etcd-io#9085
The context error with cancel code is typically for user cancellation which should be at debug level. For other error codes we should display a warning. Fixes etcd-io#9085
The context error with cancel code is typically for user cancellation which should be at debug level. For other error codes we should display a warning. Fixes etcd-io#9085
The context error with cancel code is typically for user cancellation which should be at debug level. For other error codes we should display a warning. Fixes #9085
The context error with cancel code is typically for user cancellation which should be at debug level. For other error codes we should display a warning. Fixes #9085
The context error with cancel code is typically for user cancellation which should be at debug level. For other error codes we should display a warning. Fixes #9085
We probably should not log expected errors (for example if the watcher is closed by the client, we should not log a warning saying that the context is canceled.)
/cc @gyuho @jpbetz @hexfusion @spzala
The text was updated successfully, but these errors were encountered: