fix: print consul svc addr in debug log (#12115)

* fix: print consul svc addr in debug log

* fix: add small change log 12115.txt
This commit is contained in:
Tor E Hagemann
2021-07-21 16:12:49 -04:00
committed by GitHub
parent 8cc5370aed
commit 81fbac54a5
2 changed files with 4 additions and 1 deletions

3
changelog/12115.txt Normal file
View File

@@ -0,0 +1,3 @@
```release-note:bug
service_registration/consul: Print config service_address set in DEBUG log
```

View File

@@ -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