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

Method formattedEffectiveUserName

rest/handler.go:1483–1489  ·  view source on GitHub ↗

formattedEffectiveUserName formats an effective name for appending to logs. e.g: 'Did xyz (as %s)' or 'Did xyz (as alice )'

()

Source from the content-addressed store, hash-verified

1481// formattedEffectiveUserName formats an effective name for appending to logs.
1482// e.g: 'Did xyz (as %s)' or 'Did xyz (as <ud>alice</ud>)'
1483func (h *handler) formattedEffectiveUserName() string {
1484 if name := h.taggedEffectiveUserName(); name != "" {
1485 return " (as " + name + ")"
1486 }
1487
1488 return ""
1489}
1490
1491// ////// RESPONSES:
1492

Callers 2

logRequestLineMethod · 0.95
handleBLIPSyncMethod · 0.95

Calls 1

Tested by

no test coverage detected