Skip to content

Commit 36e2305

Browse files
philippgillembobakov
authored andcommitted
Add error details to Consul error log
1 parent d3c91dc commit 36e2305

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

consul.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func watchConsulService(ctx context.Context, s servicer, tgt target, out chan<-
6363
},
6464
)
6565
if err != nil {
66-
grpclog.Errorf("[Consul resolver] Couldn't fetch endpoints. target={%s}", tgt.String())
66+
grpclog.Errorf("[Consul resolver] Couldn't fetch endpoints. target={%s}; error={%v}", tgt.String(), err)
6767
time.Sleep(bck.Duration())
6868
continue
6969
}

0 commit comments

Comments
 (0)