Browse Source

on mq re-connecting donot exit if failed

abhishek9686 1 year ago
parent
commit
6a7502dcb2
1 changed files with 1 additions and 1 deletions
  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 {