Merge pull request #352 from kevinburke/fix-404

api: fix 404 error logging
This commit is contained in:
Jimmy Zelinskie 2017-04-04 01:46:42 -04:00 committed by GitHub
commit 76a6b24fd7

View File

@ -52,7 +52,7 @@ func (rtr router) ServeHTTP(w http.ResponseWriter, r *http.Request) {
return
}
log.Infof("%s %d %s %s", http.StatusNotFound, r.Method, r.RequestURI, r.RemoteAddr)
log.Infof("%d %s %s %s", http.StatusNotFound, r.Method, r.RequestURI, r.RemoteAddr)
http.NotFound(w, r)
}