X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Fxapp%2Fxapp.go;fp=pkg%2Fxapp%2Fxapp.go;h=e8f47ef6202f4eea6205f951780a5ed98d7733bc;hb=dba83dfb6f135fb2f6987e55beec8552c6a8b74e;hp=f778265edee516733e3ef6affa0c93bdac93dda8;hpb=4623ad98eb5826c5fbb0928c972e9f02bed4a57a;p=ric-plt%2Fxapp-frame.git diff --git a/pkg/xapp/xapp.go b/pkg/xapp/xapp.go index f778265..e8f47ef 100755 --- a/pkg/xapp/xapp.go +++ b/pkg/xapp/xapp.go @@ -23,7 +23,6 @@ import ( "bytes" "encoding/json" "fmt" - "github.com/spf13/viper" "net/http" "os" "os/signal" @@ -31,6 +30,8 @@ import ( "sync/atomic" "syscall" "time" + + "github.com/spf13/viper" ) type ReadyCB func(interface{}) @@ -111,6 +112,8 @@ func getService(host, service string) string { svc := fmt.Sprintf(service, strings.ToUpper(appnamespace), strings.ToUpper(host)) url := strings.Split(os.Getenv(strings.Replace(svc, "-", "_", -1)), "//") + + Logger.Info("getService: %+v %+v", svc, url) if len(url) > 1 { return url[1] }