Converting to structured logging the file web/handlers.go (#12092)

Этот коммит содержится в:
Nikhil Ranjan
2019-09-10 08:39:22 +02:00
коммит произвёл Eli Yukelzon
родитель 3ea8db5dc6
Коммит 7ff3439513

Просмотреть файл

@@ -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(