MCPcopy Index your code
hub / github.com/github/github-mcp-server / log

Method log

pkg/lockdown/lockdown.go:289–297  ·  view source on GitHub ↗
(ctx context.Context, level slog.Level, msg string, attrs ...slog.Attr)

Source from the content-addressed store, hash-verified

287}
288
289func (c *RepoAccessCache) log(ctx context.Context, level slog.Level, msg string, attrs ...slog.Attr) {
290 if c == nil || c.logger == nil {
291 return
292 }
293 if !c.logger.Enabled(ctx, level) {
294 return
295 }
296 c.logger.LogAttrs(ctx, level, msg, attrs...)
297}
298
299func (c *RepoAccessCache) logDebug(ctx context.Context, msg string, attrs ...slog.Attr) {
300 c.log(ctx, slog.LevelDebug, msg, attrs...)

Callers 1

logDebugMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected