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

Method AddServerLogContext

rest/server_context.go:2277–2283  ·  view source on GitHub ↗
(parent context.Context)

Source from the content-addressed store, hash-verified

2275}
2276
2277func (sc *ServerContext) AddServerLogContext(parent context.Context) context.Context {
2278 // ServerLogContext is separate from standard LogContext, so this does not reset the log context
2279 if sc != nil && sc.LogContextID != "" {
2280 return base.LogContextWith(parent, &base.ServerLogContext{LogContextID: sc.LogContextID})
2281 }
2282 return parent
2283}
2284
2285func (sc *ServerContext) SetContextLogID(parent context.Context, id string) context.Context {
2286 if sc != nil {

Callers 1

ContextMethod · 0.80

Calls 1

LogContextWithFunction · 0.92

Tested by

no test coverage detected