Parcourir la source

on mq re-connecting donot exit if failed

abhishek9686 il y a 1 an
Parent
commit
6a7502dcb2
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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 {