From e865f86088fb1f4137a0b5f9eab9807d62ed3f90 Mon Sep 17 00:00:00 2001 From: Michael Nikitochkin Date: Sat, 27 Aug 2022 19:04:24 +0200 Subject: [PATCH] Formatted api --- api.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/api.go b/api.go index db84e2309..008ef7ff3 100644 --- a/api.go +++ b/api.go @@ -94,14 +94,14 @@ func (server *ApiServer) Listen(host string, port string) { func (server *ApiServer) loggingMiddleware(next http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - server. - Logger. - Debug(). - Str("client", r.RemoteAddr). - Str("method", r.Method). - Str("uri", r.RequestURI). - Msg("") - next.ServeHTTP(w, r) + server. + Logger. + Debug(). + Str("client", r.RemoteAddr). + Str("method", r.Method). + Str("uri", r.RequestURI). + Msg("") + next.ServeHTTP(w, r) }) }