fix
This commit is contained in:
parent
6567a1dc35
commit
4538137ce4
3
main.go
3
main.go
@ -49,7 +49,8 @@ func handlerWrapper(f func(*http.Request) (interface{}, int)) func(http.Response
|
|||||||
w.WriteHeader(status)
|
w.WriteHeader(status)
|
||||||
}
|
}
|
||||||
go writeMetric(start, r.URL.Path, status, int(time.Since(start).Milliseconds()), r.Method)
|
go writeMetric(start, r.URL.Path, status, int(time.Since(start).Milliseconds()), r.Method)
|
||||||
log.Printf("%s %d %s", r.URL, status, time.Since(start))
|
if r.URL == "/api/v1/finish" || r.URL == "/api/v1/put":
|
||||||
|
log.Printf("%s %d %s", r.URL, status, time.Since(start))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user