From cb83d7a04c4c1441a3adda81ded85e94f1ef0824 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=8D=A3=E6=98=8C?= Date: Sun, 7 Apr 2024 12:20:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B0=83=E6=95=B4log?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- log/kis_default_log.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/log/kis_default_log.go b/log/kis_default_log.go index f6504a3..671222f 100644 --- a/log/kis_default_log.go +++ b/log/kis_default_log.go @@ -78,27 +78,27 @@ func loadKisDefaultLog(opts ...KisLogOptions) *kisDefaultSlog { } func (k *kisDefaultSlog) InfoFX(ctx context.Context, str string, v ...interface{}) { - slog.InfoContext(ctx, str, v) + slog.InfoContext(ctx, str, v...) } func (k *kisDefaultSlog) ErrorFX(ctx context.Context, str string, v ...interface{}) { - slog.ErrorContext(ctx, str, v) + slog.ErrorContext(ctx, str, v...) } func (k *kisDefaultSlog) DebugFX(ctx context.Context, str string, v ...interface{}) { - slog.DebugContext(ctx, str, v) + slog.DebugContext(ctx, str, v...) } func (k *kisDefaultSlog) InfoF(str string, v ...interface{}) { - slog.Info(str, v) + slog.Info(str, v...) } func (k *kisDefaultSlog) ErrorF(str string, v ...interface{}) { - slog.Error(str, v) + slog.Error(str, v...) } func (k *kisDefaultSlog) DebugF(str string, v ...interface{}) { - slog.Debug(str, v) + slog.Debug(str, v...) } func (k *kisDefaultSlog) SetDebugMode(enable bool) {