Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions log/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@
package log

type Logger interface {
WithField(key string, value interface{}) Logger
WithField(key string, value any) Logger
// Info logs to the INFO log.
Info(args ...interface{})
Info(args ...any)
Comment on lines +21 to +23
Copy link

Copilot AI Feb 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR title/description suggests a broad replacement of interface{} with any across the codebase, but this PR (at least in the changes shown) only updates the log.Logger interface. Consider updating the PR description/title to reflect the narrower scope, or expanding the refactor to cover the remaining interface{} usages if that was the intent.

Copilot uses AI. Check for mistakes.
// Infof logs to the INFO log.
Infof(format string, args ...interface{})
Infof(format string, args ...any)
// Warn logs to the WARNING and INFO logs.
Warn(args ...interface{})
Warn(args ...any)
// Warnf logs to the WARNING and INFO logs.
Warnf(format string, args ...interface{})
Warnf(format string, args ...any)
// Error logs to the ERROR, WARNING, and INFO logs.
Error(args ...interface{})
Error(args ...any)
// Errorf logs to the ERROR, WARNING, and INFO logs.
Errorf(format string, args ...interface{})
Errorf(format string, args ...any)
}

// SetLogger for connect the agent with program
Expand Down
Loading