modify: mqtt日志问题
This commit is contained in:
@@ -95,7 +95,11 @@ async def board_ping(request: BoardPingRequest, worker_id: str = "") -> dict:
|
||||
|
||||
# 转发心跳数据到外部 MQTT Broker
|
||||
if mqtt_forward is not None:
|
||||
await mqtt_forward.publish(ping_data)
|
||||
success = await mqtt_forward.publish(ping_data)
|
||||
if not success:
|
||||
logger.warning("[MQTTForward] 心跳转发失败")
|
||||
else:
|
||||
logger.warning("[MQTTForward] mqtt_forward 客户端为 None,跳过转发")
|
||||
|
||||
logger.debug(
|
||||
f"[Heartbeat] {board_id}: temp={request.BoardTemp}, "
|
||||
|
||||
Reference in New Issue
Block a user