LogError logs an error with the HTTP route information.
(r *http.Request, err error)
| 137 | |
| 138 | // LogError logs an error with the HTTP route information. |
| 139 | func LogError(r *http.Request, err error) { |
| 140 | log.Printf("[http] error: %s %s: %s", r.Method, r.URL.Path, err) |
| 141 | } |
| 142 | |
| 143 | // lookup of application error codes to HTTP status codes. |
| 144 | var codes = map[string]int{ |
no outgoing calls
no test coverage detected