14 lines
279 B
Go
14 lines
279 B
Go
|
package logicErr
|
||
|
|
||
|
import (
|
||
|
"log"
|
||
|
"net/http"
|
||
|
)
|
||
|
|
||
|
type HttpErrLogger = func(err *Err, r *http.Request)
|
||
|
|
||
|
var DefaultHttpErrLogger HttpErrLogger = func(err *Err, r *http.Request) {
|
||
|
log.Printf("[ERR] HTTP failed to handle %s request to %s: %s\n",
|
||
|
r.Method, r.URL.Path, err.Msg)
|
||
|
}
|