fix:修复遥测,打字时间,图像识别
This commit is contained in:
@@ -71,7 +71,7 @@ class TelemetryHeartBeatTask(AsyncTask):
|
||||
timeout=5, # 设置超时时间为5秒
|
||||
)
|
||||
except Exception as e:
|
||||
logger.error(f"请求UUID时出错: {e}") # 可能是网络问题
|
||||
logger.warning(f"请求UUID出错,不过你还是可以正常使用麦麦: {e}") # 可能是网络问题
|
||||
|
||||
logger.debug(f"{TELEMETRY_SERVER_URL}/stat/reg_client")
|
||||
|
||||
@@ -90,7 +90,7 @@ class TelemetryHeartBeatTask(AsyncTask):
|
||||
else:
|
||||
logger.error("无效的服务端响应")
|
||||
else:
|
||||
logger.error(f"请求UUID失败,状态码: {response.status_code}, 响应内容: {response.text}")
|
||||
logger.error(f"请求UUID失败,不过你还是可以正常使用麦麦,状态码: {response.status_code}, 响应内容: {response.text}")
|
||||
|
||||
# 请求失败,重试次数+1
|
||||
try_count += 1
|
||||
@@ -123,7 +123,7 @@ class TelemetryHeartBeatTask(AsyncTask):
|
||||
)
|
||||
except Exception as e:
|
||||
# 你知道为什么设置成debug吗?
|
||||
# 因为我不想看到群里天天报错
|
||||
# 因为我不想看到
|
||||
logger.debug(f"心跳发送失败: {e}")
|
||||
|
||||
logger.debug(response)
|
||||
|
||||
Reference in New Issue
Block a user