-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
Zap logger prints connection reset by peer
but capnslog doesn't
#10364
Comments
connection reset by peer
when launching it with embed
connection reset by peer
when launching it with embedconnection reset by peer
connection reset by peer
connection reset by peer
but capnslog doesn't
Yeah |
@longdeqidao, I understand we would love your help if you are interested in trying to resolve this. |
I came across the same bug here. @hexfusion let me take some time investigate and maybe fix this weird bug |
Thanks @WIZARD-CXY. I just tried, it is reproducible. |
@jingyih @hexfusion @xxx7xxxx I took some time to debug this and find that it is logger verbose settings that make this weird behavior.It makes different dicisions when logging
in http2_server.go The warningf logging really print something when below func
The input value when using zap
The capnslog uses verbose level 0
From above capnslog's I hope I make the above logic clear. |
I checked the code and it's not easy to ignore this error msg unless we modify the zap code. |
By default the log level is INFO. So it is consistent that the zap logger prints the grpc warning? Maybe we should trace down what caused the warning in the first place and see if we can fix that? It looks like the client reset the stream while server still tries to read from it. |
From the related issue, I think this msg is spam and can be ignored grpc/grpc-go#1062 (comment) |
Can the zap logger set the verbose level? I go through the code and doc, but didn't find it... |
The code: Line 177 in fb7703a
|
ah, but this doesn't affect the verbose level |
hmmm... Looks like it is by design? Maybe because we want to keep the old behavior? Lines 23 to 26 in fb7703a
cc @gyuho |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Under the newest master code.
When I execute this command:
The zap logger will print:
But I change the startup command line to
./bin/etcd # which means capnslog logger
, there isn't the same warn log.The text was updated successfully, but these errors were encountered: