api: fix 404 error logging

The first value is an integer and the second value is a string and the
format string has these backwards, leading to %!s(int=404) appearing
in the logs instead of "404".
pull/352/head
Kevin Burke 7 years ago
parent 59ee75c502
commit 6a50bbb8b8
No known key found for this signature in database
GPG Key ID: 24B0EF06511BA263

@ -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)
}

Loading…
Cancel
Save