Change log level
[ric-plt/xapp-frame.git] / pkg / xapp / xapp.go
index e832436..583d288 100755 (executable)
@@ -102,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
                }
 
@@ -305,7 +305,7 @@ func RunWithParams(c MessageConsumer, sdlcheck bool) {
        if ipString == "<nil>" {
                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))