Converting to structured logging the file web/handlers.go (#12092)
Этот коммит содержится в:
коммит произвёл
Eli Yukelzon
родитель
3ea8db5dc6
Коммит
7ff3439513
@@ -57,7 +57,7 @@ type Handler struct {
|
|||||||
|
|
||||||
func (h Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
func (h Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||||
now := time.Now()
|
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 := &Context{}
|
||||||
c.App = app.New(
|
c.App = app.New(
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user