From 7ff34395138d6df7be55249931fd1c359641d628 Mon Sep 17 00:00:00 2001 From: Nikhil Ranjan Date: Tue, 10 Sep 2019 08:39:22 +0200 Subject: [PATCH] Converting to structured logging the file web/handlers.go (#12092) --- web/handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/handlers.go b/web/handlers.go index a67c585ec1..9269a04e93 100644 --- a/web/handlers.go +++ b/web/handlers.go @@ -57,7 +57,7 @@ type Handler struct { func (h Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) { now := time.Now() - mlog.Debug(fmt.Sprintf("%v - %v", r.Method, r.URL.Path)) + mlog.Debug("request:", mlog.String("method", r.Method), mlog.String("url", r.URL.Path)) c := &Context{} c.App = app.New(