From a4740c0de4bcacaf488f92e92f34e31b6bd3bdb2 Mon Sep 17 00:00:00 2001 From: AmirDoreh Date: Sun, 16 Jun 2024 12:51:22 +0300 Subject: [PATCH] using interface{} instead of any --- log/logger.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/log/logger.go b/log/logger.go index 8b03b68fc8..f7e38c2f13 100644 --- a/log/logger.go +++ b/log/logger.go @@ -173,8 +173,8 @@ func (l *logger) Write(level slog.Level, msg string, attrs ...any) { l.inner.Handler().Handle(context.Background(), r) } -func (l *logger) Log(level slog.Level, msg string, attrs ...any) { - l.Write(level, msg, attrs...) +func (l *logger) Log(level slog.Level, msg string, ctx ...interface{}) { + l.Write(level, msg, ctx...) } func (l *logger) With(ctx ...interface{}) Logger { @@ -202,7 +202,7 @@ func (l *logger) Info(msg string, ctx ...interface{}) { l.Write(slog.LevelInfo, msg, ctx...) } -func (l *logger) Warn(msg string, ctx ...any) { +func (l *logger) Warn(msg string, ctx ...interface{}) { l.Write(slog.LevelWarn, msg, ctx...) }