MCPcopy
hub / github.com/benbjohnson/wtf / LogError

Function LogError

http/http.go:139–141  ·  view source on GitHub ↗

LogError logs an error with the HTTP route information.

(r *http.Request, err error)

Source from the content-addressed store, hash-verified

137
138// LogError logs an error with the HTTP route information.
139func 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.
144var codes = map[string]int{

Callers 6

handleDialIndexMethod · 0.85
handleDialViewMethod · 0.85
handleDialCreateMethod · 0.85
ErrorFunction · 0.85
handleEventsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected