Skip to content

Commit

Permalink
Add error details to Consul error log
Browse files Browse the repository at this point in the history
  • Loading branch information
philippgille authored and mbobakov committed Apr 22, 2021
1 parent d3c91dc commit 36e2305
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion consul.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ 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.String())
grpclog.Errorf("[Consul resolver] Couldn't fetch endpoints. target={%s}; error={%v}", tgt.String(), err)
time.Sleep(bck.Duration())
continue
}
Expand Down

0 comments on commit 36e2305

Please sign in to comment.