From 3eddd50fb9d95c10617f7d81c422217268d10440 Mon Sep 17 00:00:00 2001 From: Tatsuro Furusawa Date: Mon, 26 Feb 2024 14:35:16 +0900 Subject: [PATCH 1/2] support LogAdapter instead of WarningLogAdapter --- logging.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logging.go b/logging.go index 2b23697..35927d2 100644 --- a/logging.go +++ b/logging.go @@ -162,7 +162,7 @@ func LogError(ctx context.Context, msg string, keyvals ...interface{}) { switch logger := l.(type) { case ContextLogAdapter: logger.ErrorContext(ctx, msg, keyvals...) - case WarningLogAdapter: + case LogAdapter: logger.Error(msg, keyvals...) } } From 15ebaf5218622a30c9e8499211ee5409acb4a0d5 Mon Sep 17 00:00:00 2001 From: ICHINOSE Shogo Date: Mon, 26 Feb 2024 23:03:44 +0900 Subject: [PATCH 2/2] sync Service.LogError with LogError --- service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service.go b/service.go index e5bf67c..14abab3 100644 --- a/service.go +++ b/service.go @@ -215,7 +215,7 @@ func (service *Service) LogError(msg string, keyvals ...interface{}) { switch logger := l.(type) { case ContextLogAdapter: logger.ErrorContext(ctx, msg, keyvals...) - case WarningLogAdapter: + case LogAdapter: logger.Error(msg, keyvals...) } }