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...) } } 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...) } }