Debug update

This commit is contained in:
Piotr Biernat 2024-12-24 17:51:02 +01:00
parent 68e6e3ef55
commit 8394feaec7

View File

@ -2,6 +2,7 @@ package consul
import (
"fmt"
"log"
"net/http"
"strconv"
"time"
@ -60,6 +61,7 @@ func NewService(servAddr, id, name, useDomainOverIp, addr, domain, pathPrefix st
func newClientConfig(serverAddr string) *consul.Config {
conf := consul.DefaultConfig()
log.Printf("Setting consul server addr: %s", serverAddr)
conf.Address = serverAddr
return conf