From b0e5bc90c29c635dff1cc31eb0726dd328392b40 Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 4 Nov 2022 16:10:25 +0100 Subject: [PATCH] Fix api endpoint log message --- api/endpoints.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/endpoints.go b/api/endpoints.go index 37a8b45..9e2586a 100644 --- a/api/endpoints.go +++ b/api/endpoints.go @@ -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", ) } }