Add errantly removed pathParts definition

This commit is contained in:
Cody Soyland 2019-06-05 17:22:14 -05:00 committed by Matt Jaffee
parent 14920758aa
commit fc33f7ea66
No known key found for this signature in database
GPG key ID: 08A3DFFF987B11BF

View file

@ -302,6 +302,7 @@ func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
// Calculate per request StatsD metrics when the handler is fully configured.
statsTags := make([]string, 0, 4)
pathParts := strings.Split(r.URL.Path, "/")
longQueryTime := h.api.LongQueryTime()
if longQueryTime > 0 && dif > longQueryTime {
h.logger.Printf("%s %s %v", r.Method, r.URL.String(), dif)