Compare commits

..

1 Commits

Author SHA1 Message Date
8394feaec7 Debug update 2024-12-24 17:51:02 +01:00

View File

@@ -2,11 +2,12 @@ package consul
import ( import (
"fmt" "fmt"
"log"
"net/http" "net/http"
"strconv" "strconv"
"time" "time"
"git.ego.cloudns.be/egommerce/go-api-pkg/config" "git.pbiernat.io/egommerce/go-api-pkg/config"
consul "github.com/hashicorp/consul/api" consul "github.com/hashicorp/consul/api"
"github.com/hashicorp/consul/connect" "github.com/hashicorp/consul/connect"
) )
@@ -60,6 +61,7 @@ func NewService(servAddr, id, name, useDomainOverIp, addr, domain, pathPrefix st
func newClientConfig(serverAddr string) *consul.Config { func newClientConfig(serverAddr string) *consul.Config {
conf := consul.DefaultConfig() conf := consul.DefaultConfig()
log.Printf("Setting consul server addr: %s", serverAddr)
conf.Address = serverAddr conf.Address = serverAddr
return conf return conf