Przeglądaj źródła

on mq re-connecting donot exit if failed

abhishek9686 1 rok temu
rodzic
commit
6a7502dcb2
1 zmienionych plików z 1 dodań i 1 usunięć
  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 {