mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 09:05:55 +00:00
Merge pull request #1544 from alanbernstein/clarify-longquerytime-log
Add some context to the longquerytime log message
This commit is contained in:
commit
f75e46c2f6
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