Skip to content
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

Merged
merged 2 commits into from
Dec 7, 2017
Merged

Conversation

ghost
Copy link

@ghost ghost commented Nov 26, 2017

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.

@ghost ghost added the topic/cleanup Topic cleanup label Nov 26, 2017
@ghost ghost self-assigned this Nov 26, 2017
@ghost ghost added the status/in-progress In progress label Nov 26, 2017
@ghost ghost mentioned this pull request Nov 26, 2017
@ghost
Copy link
Author

ghost commented Nov 26, 2017

Filed #4429 for the CircleCI failure, and the first TravisCI failure is related to ongoing gateway issues.

Copy link
Member

@Stebalien Stebalien left a 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)
Copy link
Member

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.

Copy link
Author

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.

@ghost ghost force-pushed the feat/namesys-logging branch 2 times, most recently from 7f63458 to 1046294 Compare November 27, 2017 00:39
@whyrusleeping
Copy link
Member

needs a rebase

Lars Gierth added 2 commits December 7, 2017 00:21
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
@ghost ghost force-pushed the feat/namesys-logging branch from 1046294 to 55692ac Compare December 6, 2017 23:22
@ghost
Copy link
Author

ghost commented Dec 6, 2017

@whyrusleeping rebased

@whyrusleeping whyrusleeping merged commit 4d41235 into master Dec 7, 2017
@ghost ghost removed the status/in-progress In progress label Dec 7, 2017
@whyrusleeping whyrusleeping deleted the feat/namesys-logging branch December 7, 2017 20:01
hacdias pushed a commit to ipfs/boxo that referenced this pull request Jan 27, 2023
Refine gateway and namesys logging

This commit was moved from ipfs/kubo@4d41235
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic/cleanup Topic cleanup
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants