mirror of
https://github.com/safing/portbase
synced 2025-09-01 10:09:50 +00:00
Fix api endpoint log message
This commit is contained in:
parent
985a174aff
commit
b0e5bc90c2
1 changed files with 3 additions and 3 deletions
|
@ -388,18 +388,18 @@ func (e *Endpoint) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||||
if eMethod != e.ReadMethod {
|
if eMethod != e.ReadMethod {
|
||||||
log.Tracer(r.Context()).Warningf(
|
log.Tracer(r.Context()).Warningf(
|
||||||
"api: method %q does not match required read method %q%s",
|
"api: method %q does not match required read method %q%s",
|
||||||
" - this will be an error and abort the request in the future",
|
|
||||||
r.Method,
|
r.Method,
|
||||||
e.ReadMethod,
|
e.ReadMethod,
|
||||||
|
" - this will be an error and abort the request in the future",
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if eMethod != e.WriteMethod {
|
if eMethod != e.WriteMethod {
|
||||||
log.Tracer(r.Context()).Warningf(
|
log.Tracer(r.Context()).Warningf(
|
||||||
"api: method %q does not match required write method %q%s",
|
"api: method %q does not match required write method %q%s",
|
||||||
" - this will be an error and abort the request in the future",
|
|
||||||
r.Method,
|
r.Method,
|
||||||
e.ReadMethod,
|
e.WriteMethod,
|
||||||
|
" - this will be an error and abort the request in the future",
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue