X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Fxapp%2Fxapp.go;h=583d2889d6362b4260181e259d2a96ed6d03c4ee;hb=82651fe96c123b61252dfef755ce7b9882e7db97;hp=b87463bc6865702d2432be33251eda5875215575;hpb=8b7008d5777ca84d04c04867ec1a6f0edea4633f;p=ric-plt%2Fxapp-frame.git diff --git a/pkg/xapp/xapp.go b/pkg/xapp/xapp.go index b87463b..583d288 100755 --- a/pkg/xapp/xapp.go +++ b/pkg/xapp/xapp.go @@ -37,6 +37,7 @@ import ( ) // For testing purpose go version 1.13 -> + var _ = func() bool { testing.Init() return true @@ -101,7 +102,7 @@ func registerXapp() { for { time.Sleep(5 * time.Second) if !IsHealthProbeReady() { - Logger.Info("Application='%s' is not ready yet, waiting ...", viper.GetString("name")) + Logger.Debug("Application='%s' is not ready yet, waiting ...", viper.GetString("name")) continue } @@ -304,7 +305,7 @@ func RunWithParams(c MessageConsumer, sdlcheck bool) { if ipString == "" { host = fmt.Sprintf(":%d", GetPortData("http").Port) } else { - host = fmt.Sprintf("%s:%d", ipString, GetPortData("http").Port) + host = fmt.Sprintf("[%s]:%d", ipString, GetPortData("http").Port) } go http.ListenAndServe(host, Resource.router) Logger.Info(fmt.Sprintf("Xapp started, listening on: %s", host))