Skip to content

Commit

Permalink
Merge pull request #6 from mbobakov/fix-logging
Browse files Browse the repository at this point in the history
log formatting for the target-object
  • Loading branch information
mbobakov authored Feb 4, 2019
2 parents 46ccd28 + 714262d commit 980610a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions consul.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ func watchConsulService(ctx context.Context, s servicer, tgt target, out chan<-
},
)
if err != nil {
grpclog.Errorf("[Consul resolver] Couldn't fetch endpoints. target={%s}", tgt)
grpclog.Errorf("[Consul resolver] Couldn't fetch endpoints. target={%s}", tgt.String())
continue
}
lastIndex = meta.LastIndex
grpclog.Infof("[Consul resolver] %d endpoints fetched in(+wait) %s for target={%s}",
len(ss),
meta.RequestTime,
tgt,
tgt.String(),
)

ee := make([]string, 0, len(ss))
Expand Down

0 comments on commit 980610a

Please sign in to comment.