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

Method logStatus

rest/handler.go:863–866  ·  view source on GitHub ↗

logStatus will log the request status, but NOT the duration of the request. This is used for indefinitely-long handlers like _changes that we don't want to track duration of

(status int, message string)

Source from the content-addressed store, hash-verified

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
863func (h *handler) logStatus(status int, message string) {
864 h.setStatus(status, message)
865 h.logDuration(false) // don't track actual time
866}
867
868func needRolesForAudit(db *db.DatabaseContext, domain base.UserIDDomain) bool {
869 // early returns when auditing is disabled

Calls 2

setStatusMethod · 0.95
logDurationMethod · 0.95

Tested by

no test coverage detected