feat: mqtt 去除不必要的log
This commit is contained in:
parent
54fc93de73
commit
4d559222ba
|
@ -20,10 +20,8 @@ _logger = logging.getLogger("log")
|
|||
|
||||
def on_connect(mqttc, userdata, flags, rc, properties):
|
||||
if rc == 0:
|
||||
_logger.info("Mqtt Connected successfully")
|
||||
if settings.KING_ENABLED: # 订阅亚控的mqtt转发
|
||||
mqttc.subscribe("datachange_S_KIO_Project") # 订阅主题
|
||||
_logger.info("订阅亚控主题成功")
|
||||
else:
|
||||
_logger.error("Mqtt Bad connection. Code:", rc)
|
||||
|
||||
|
|
Loading…
Reference in New Issue