Explorar el Código

on mq re-connecting donot exit if failed

abhishek9686 hace 1 año
padre
commit
6a7502dcb2
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      mq/mq.go

+ 1 - 1
mq/mq.go

@@ -114,7 +114,7 @@ func SetupMQTT(fatal bool) {
 					if fatal {
 						logger.FatalLog("could not connect to broker, exiting ...", token.Error().Error())
 					}
-					logger.FatalLog("could not connect to broker, exiting ...", token.Error().Error())
+					logger.Log(0, "could not connect to broker, exiting ...", token.Error().Error())
 				}
 			}
 		} else {