Skip to content

Commit

Permalink
Fix api endpoint log message
Browse files Browse the repository at this point in the history
  • Loading branch information
dhaavi committed Nov 4, 2022
1 parent 985a174 commit b0e5bc9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/endpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -388,18 +388,18 @@ func (e *Endpoint) ServeHTTP(w http.ResponseWriter, r *http.Request) {
if eMethod != e.ReadMethod {
log.Tracer(r.Context()).Warningf(
"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,
e.ReadMethod,
" - this will be an error and abort the request in the future",
)
}
} else {
if eMethod != e.WriteMethod {
log.Tracer(r.Context()).Warningf(
"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,
e.ReadMethod,
e.WriteMethod,
" - this will be an error and abort the request in the future",
)
}
}
Expand Down

0 comments on commit b0e5bc9

Please sign in to comment.