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

Method getCopy

base/logging_context.go:149–167  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

147}
148
149func (lc *LogContext) getCopy() LogContext {
150 return LogContext{
151 CorrelationID: lc.CorrelationID,
152 Database: lc.Database,
153 DbLogConfig: lc.DbLogConfig,
154 Bucket: lc.Bucket,
155 Scope: lc.Scope,
156 Collection: lc.Collection,
157 TestName: lc.TestName,
158 RequestAdditionalAuditFields: lc.RequestAdditionalAuditFields,
159 Username: lc.Username,
160 UserDomain: lc.UserDomain,
161 UserRolesForAuditFiltering: lc.UserRolesForAuditFiltering,
162 RequestHost: lc.RequestHost,
163 RequestRemoteAddr: lc.RequestRemoteAddr,
164 EffectiveUserID: lc.EffectiveUserID,
165 EffectiveDomain: lc.EffectiveDomain,
166 }
167}
168
169func FormatBlipContextID(contextID string) string {
170 return "[" + contextID + "]"

Callers 1

getLogCtxFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected