Merge pull request 'fix' (#30) from master into dev
Reviewed-on: https://gitea.chocomarsh.com/self/queues-go/pulls/30
This commit is contained in:
commit
28e83ee592
6
main.go
6
main.go
@ -48,10 +48,8 @@ func handlerWrapper(f func(*http.Request) (interface{}, int)) func(http.Response
|
|||||||
} else {
|
} else {
|
||||||
w.WriteHeader(status)
|
w.WriteHeader(status)
|
||||||
}
|
}
|
||||||
// go writeMetric(start, r.URL.Path, status, int(time.Since(start).Milliseconds()), r.Method)
|
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))
|
||||||
log.Printf("%s %d %s", r.URL, status, time.Since(start))
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user