Compare commits
No commits in common. "28e83ee592271d05ab2e0c65c2f6f3e00e895a4e" and "7f60dc0f59d1741f0630c3112e40d73754657749" have entirely different histories.
28e83ee592
...
7f60dc0f59
6
main.go
6
main.go
@ -48,8 +48,10 @@ func handlerWrapper(f func(*http.Request) (interface{}, int)) func(http.Response
|
||||
} else {
|
||||
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))
|
||||
// go writeMetric(start, r.URL.Path, status, int(time.Since(start).Milliseconds()), r.Method)
|
||||
if r.URL.Path != "/api/v1/take" {
|
||||
log.Printf("%s %d %s", r.URL, status, time.Since(start))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user