Skip to content

Commit

Permalink
Formatted api
Browse files Browse the repository at this point in the history
  • Loading branch information
miry committed Aug 27, 2022
1 parent a9b543d commit e865f86
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions api.go
Expand Up @@ -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)
})
}

Expand Down

0 comments on commit e865f86

Please sign in to comment.