Skip to content

Commit

Permalink
Merge pull request #7 from askuy/feature/emptyk8s
Browse files Browse the repository at this point in the history
更改日志类型
  • Loading branch information
askuy authored Jun 28, 2024
2 parents a148488 + 51cfb3b commit 7657d81
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 7657d81

Please sign in to comment.