Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

更改日志类型 #7

Merged
merged 1 commit into from
Jun 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading