MCPcopy Create free account
hub / github.com/bytemode/pitaya-notes / CtxWithDefaultLogger

Function CtxWithDefaultLogger

util/util.go:171–194  ·  view source on GitHub ↗

CtxWithDefaultLogger inserts a default logger on ctx to be used on handlers and remotes. If using logrus, userId, route and requestId will be added as fields. Otherwise the pitaya logger will be used as it is.

(ctx context.Context, route, userID string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

processHandlerMessageFunction · 0.92
GetContextFromRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected