mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-08 03:47:51 +00:00
Add some context the longquerytime log message
This commit is contained in:
parent
6664e86222
commit
2e93b2eea2
1 changed files with 1 additions and 1 deletions
|
|
@ -334,7 +334,7 @@ func (h *Handler) collectStats(next http.Handler) http.Handler {
|
|||
queryString = req.Query
|
||||
}
|
||||
|
||||
h.logger.Printf("%s %s %v %s", r.Method, r.URL.String(), dur, queryString)
|
||||
h.logger.Printf("HTTP query duration %v exceeds %v: %s %s %s", dur, longQueryTime, r.Method, r.URL.String(), queryString)
|
||||
statsTags = append(statsTags, "slow:true")
|
||||
} else {
|
||||
statsTags = append(statsTags, "slow:false")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue