MCPcopy Create free account
hub / github.com/bufbuild/buf / logDebugCommitKey

Function logDebugCommitKey

private/bufpkg/bufmodule/bufmodulestore/util.go:39–52  ·  view source on GitHub ↗
(ctx context.Context, logger *slog.Logger, commitKey bufmodule.CommitKey, message string, fields ...any)

Source from the content-addressed store, hash-verified

37}
38
39func logDebugCommitKey(ctx context.Context, logger *slog.Logger, commitKey bufmodule.CommitKey, message string, fields ...any) {
40 logger.DebugContext(
41 ctx,
42 message,
43 append(
44 []any{
45 slog.String("digestType", commitKey.DigestType().String()),
46 slog.String("registry", commitKey.Registry()),
47 slog.String("commitID", uuidutil.ToDashless(commitKey.CommitID())),
48 },
49 fields...,
50 )...,
51 )
52}

Callers 1

logDebugCommitKeyMethod · 0.85

Calls 5

ToDashlessFunction · 0.92
StringMethod · 0.65
DigestTypeMethod · 0.65
RegistryMethod · 0.65
CommitIDMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…