Add datacenter to Consul service discovery logs (#9668)

* add datacenter to consul service discovery logs

Signed-off-by: Conor Evans <coevans@tcd.ie>
This commit is contained in:
Conor Evans 2021-11-08 09:34:21 +01:00 committed by GitHub
parent cda025b5b5
commit c28b9a0574
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -297,6 +297,7 @@ func (d *Discovery) getDatacenter() error {
}
d.clientDatacenter = dc
d.logger = log.With(d.logger, "datacenter", dc)
return nil
}