fix #27
3
main.go
3
main.go
@ -49,7 +49,8 @@ func handlerWrapper(f func(*http.Request) (interface{}, int)) func(http.Response
|
||||
w.WriteHeader(status)
|
||||
}
|
||||
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