From 81fbac54a554ff7105c0f09e53b797628ccb7906 Mon Sep 17 00:00:00 2001 From: Tor E Hagemann Date: Wed, 21 Jul 2021 16:12:49 -0400 Subject: [PATCH] fix: print consul svc addr in debug log (#12115) * fix: print consul svc addr in debug log * fix: add small change log 12115.txt --- changelog/12115.txt | 3 +++ serviceregistration/consul/consul_service_registration.go | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 changelog/12115.txt 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