clay / amphora

Middleware for Express that composes components into renderable pages
https://claycms.gitbooks.io/amphora/
MIT License
31 stars 23 forks source link

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

Closed mattoberle closed 4 years ago

mattoberle commented 4 years ago

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 commented 4 years ago

Pull Request Test Coverage Report for Build 2412


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

💛 - Coveralls