MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / ContextWithLogBlockId

Function ContextWithLogBlockId

pkg/blocklogger/blocklogger.go:46–48  ·  view source on GitHub ↗
(ctx context.Context, blockId string, verbose bool)

Source from the content-addressed store, hash-verified

44}
45
46func ContextWithLogBlockId(ctx context.Context, blockId string, verbose bool) context.Context {
47 return context.WithValue(ctx, logBlockIdContextKey, &logBlockIdData{BlockId: blockId, Verbose: verbose})
48}
49
50func getLogBlockData(ctx context.Context) *logBlockIdData {
51 if ctx == nil {

Callers 1

termCtxWithLogBlockIdFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected