-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Refine gateway and namesys logging #4428
Conversation
Filed #4429 for the CircleCI failure, and the first TravisCI failure is related to ongoing gateway issues. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM except we shouldn't return 502 errors for bad input.
@@ -510,7 +506,6 @@ func (i *gatewayHandler) putHandler(w http.ResponseWriter, r *http.Request) { | |||
return | |||
} | |||
default: | |||
log.Warningf("putHandler: unhandled resolve error %T", ev) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this is a user error, we shouldn't be returning a 502. If it is, we should log it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mh yes indeed - I'll cover this in the upcoming gateway+coreapi PR.
7f63458
to
1046294
Compare
needs a rebase |
License: MIT Signed-off-by: Lars Gierth <[email protected]>
License: MIT Signed-off-by: Lars Gierth <[email protected]>
1046294
to
55692ac
Compare
@whyrusleeping rebased |
Refine gateway and namesys logging This commit was moved from ipfs/kubo@4d41235
The signal/noise ratio on the ipfs.io gateways is incredibly bad nowadays - this is a step to improving that.
All the logs here are based on user input, and they're neither WARN nor INFO worthy, so I'm degrading them all to DEBUG. Also removed a few useless log lines.
I'm already testing this on scrappy, where the logs are now actually readable.