No need to log 404
This commit is contained in:
parent
641b0c151a
commit
1cb301acdf
1 changed files with 1 additions and 0 deletions
|
@ -42,6 +42,7 @@ type errResponse struct {
|
|||
|
||||
func (e *errResponse) Render(w http.ResponseWriter, r *http.Request) error {
|
||||
switch e.Code {
|
||||
case http.StatusNotFound:
|
||||
default:
|
||||
log.Error().Str("path", r.URL.Path).Err(e.Err).Int("code", e.Code).Str("msg", e.Error).Msg("request failed")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue