Skip to content

Commit

Permalink
更改日志类型
Browse files Browse the repository at this point in the history
  • Loading branch information
askuy committed Jun 28, 2024
1 parent 8cad856 commit 51cfb3b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions registry/component.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,18 +92,18 @@ 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
}

// 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
}
Expand Down

0 comments on commit 51cfb3b

Please sign in to comment.