From 51cfb3bb6ad160c64dec33ffe820a5e4ce1545a7 Mon Sep 17 00:00:00 2001 From: askuy Date: Fri, 28 Jun 2024 12:15:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E6=97=A5=E5=BF=97=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- registry/component.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/registry/component.go b/registry/component.go index 0a227a5..07075fb 100644 --- a/registry/component.go +++ b/registry/component.go @@ -92,10 +92,10 @@ func (reg *Component) ListServices(ctx context.Context, t eregistry.Target) (ser } } } - elog.Debug("ListServices", zap.Any("services", services)) + reg.logger.Debug("ListServices", zap.Any("services", services)) return default: - elog.Error("list services error", zap.String("kind", reg.config.Kind)) + reg.logger.Error("list services error", zap.String("kind", reg.config.Kind)) } return } @@ -103,7 +103,7 @@ func (reg *Component) ListServices(ctx context.Context, t eregistry.Target) (ser // WatchServices watch service change event, then return address list func (reg *Component) WatchServices(ctx context.Context, t eregistry.Target) (chan eregistry.Endpoints, error) { appName, port, err := getAppnameAndPort(t.Endpoint) - elog.Debug("WatchServices app info", elog.String("app", appName), elog.String("port", port)) + reg.logger.Debug("WatchServices app info", elog.String("app", appName), elog.String("port", port)) if err != nil { return nil, err }