MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / logStatusWithDuration

Method logStatusWithDuration

rest/handler.go:856–859  ·  view source on GitHub ↗

logStatusWithDuration will log the request status and the duration of the request.

(status int, message string)

Source from the content-addressed store, hash-verified

854
855// logStatusWithDuration will log the request status and the duration of the request.
856func (h *handler) logStatusWithDuration(status int, message string) {
857 h.setStatus(status, message)
858 h.logDuration(true)
859}
860
861// logStatus will log the request status, but NOT the duration of the request.
862// This is used for indefinitely-long handlers like _changes that we don't want to track duration of

Callers 1

handlePurgeMethod · 0.95

Calls 2

setStatusMethod · 0.95
logDurationMethod · 0.95

Tested by

no test coverage detected