diff --git a/changelog/12115.txt b/changelog/12115.txt new file mode 100644 index 0000000000..cb00d73766 --- /dev/null +++ b/changelog/12115.txt @@ -0,0 +1,3 @@ +```release-note:bug +service_registration/consul: Print config service_address set in DEBUG log +``` diff --git a/serviceregistration/consul/consul_service_registration.go b/serviceregistration/consul/consul_service_registration.go index 75236b6429..06cb1e98d9 100644 --- a/serviceregistration/consul/consul_service_registration.go +++ b/serviceregistration/consul/consul_service_registration.go @@ -120,7 +120,7 @@ func NewServiceRegistration(conf map[string]string, logger log.Logger, state sr. serviceAddr = &serviceAddrStr } if logger.IsDebug() { - logger.Debug("config service_address set", "service_address", serviceAddr) + logger.Debug("config service_address set", "service_address", serviceAddrStr) } checkTimeout := defaultCheckTimeout