)
// For testing purpose go version 1.13 ->
+
var _ = func() bool {
testing.Init()
return true
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
}
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))