Skip to content

Commit

Permalink
zk log
Browse files Browse the repository at this point in the history
  • Loading branch information
wangchuxiao-dev committed Jul 31, 2023
1 parent f924f97 commit bc6ba14
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion discoveryregistry/zookeeper/discover.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (s *ZkClient) watch(ctx context.Context) {
log.ZDebug(context.Background(), "zk watch ctx done")
return
case event := <-s.eventChan:
log.ZDebug(context.Background(), "zk recv event", "event", event)
s.logger.Printf("zk eventChan recv new event: %+v", event)
switch event.Type {
case zk.EventSession:
switch event.State {
Expand Down
2 changes: 0 additions & 2 deletions discoveryregistry/zookeeper/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ func (r *Resolver) ResolveNowZK(o resolver.ResolveNowOptions) {
"start resolve now",
"target",
r.target,
"cc",
r.cc.UpdateState,
"serviceName",
strings.TrimLeft(r.target.URL.Path, "/"),
)
Expand Down

0 comments on commit bc6ba14

Please sign in to comment.