错误信息截断追加5000字符 | 日志信息不在加密

This commit is contained in:
2026-07-03 16:33:48 +08:00
parent 7f9a70d1ee
commit c9174a22d2
6 changed files with 13 additions and 10 deletions
+1 -1
View File
@@ -159,4 +159,4 @@ def extract_error_message(exc: Exception, service_type: str = "video") -> str:
return f"{service_type}生成失败: {code}"
except (json.JSONDecodeError, TypeError, ValueError):
pass
return raw[:200] if len(raw) > 200 else raw
return raw[:5000] if len(raw) > 5000 else raw