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

changes log level for 404s from ERROR to INFO #677

Merged
merged 1 commit into from
Sep 20, 2019

Conversation

mattoberle
Copy link
Contributor

When a page does not exist (ie. 404) Amphora was producing an ERROR-level (50) message. This devalued the meaning of the ERROR level by polluting logs with errors for things like requests to '/favicon' that browsers automatically make.

A 404 is not an error, it's expected behavior.
I think INFO is a suitable level for 404s because they are mostly noise; no additional value is provided to what one can glean from making a client-side request.

When a page does not exist (ie. 404) Amphora was producing an ERROR-level (50)
message. This devalued the meaning of the ERROR level by polluting logs
with errors for things like requests to '/favicon' that browsers
automatically make.

A 404 is not an error, it's expected behavior.
I think INFO is a suitable level for 404s because they are mostly
noise; no additional value is provided to what one can glean from
making a client-side request.
@coveralls
Copy link

Pull Request Test Coverage Report for Build 2412

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 2407: 0.0%
Covered Lines: 4145
Relevant Lines: 4145

💛 - Coveralls

@mattoberle mattoberle merged commit 83ca946 into master Sep 20, 2019
@mattoberle mattoberle deleted the change-404-log-level branch September 20, 2019 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants