(ctx context.Context, level slog.Level, msg string, attrs ...slog.Attr)
| 287 | } |
| 288 | |
| 289 | func (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 | |
| 299 | func (c *RepoAccessCache) logDebug(ctx context.Context, msg string, attrs ...slog.Attr) { |
| 300 | c.log(ctx, slog.LevelDebug, msg, attrs...) |