mirror of
https://github.com/safing/portbase
synced 2025-09-17 02:29:50 +00:00
Make default ack action if notification has none
This commit is contained in:
parent
e83e2b216c
commit
f2f1a56060
2 changed files with 13 additions and 18 deletions
|
@ -54,7 +54,7 @@ func (lrw *LoggingResponseWriter) Hijack() (net.Conn, *bufio.ReadWriter, error)
|
|||
return nil, nil, errors.New("response does not implement http.Hijacker")
|
||||
}
|
||||
|
||||
// RequestLogger is a logging middleware
|
||||
// RequestLogger is a logging middleware.
|
||||
func RequestLogger(next http.Handler) http.Handler {
|
||||
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
log.Tracef("api request: %s ___ %s", r.RemoteAddr, r.RequestURI)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue