增加堆栈错误长度
continuous-integration/drone/push Build is passing Details

Test_IRC_Net8
hang 2026-02-05 23:28:48 +08:00
parent 7e13edc440
commit 570318cf3b
1 changed files with 2 additions and 2 deletions

View File

@ -28,8 +28,8 @@ public static class WeComNotifier
var stack = ex.StackTrace ?? "无堆栈信息"; var stack = ex.StackTrace ?? "无堆栈信息";
stack = stack.Replace("\n", "\n> "); // 每行变成引用防止markdown断裂 stack = stack.Replace("\n", "\n> "); // 每行变成引用防止markdown断裂
if (stack.Length > 1000) if (stack.Length > 1200)
stack = stack.Substring(0, 1000) + "...(已截断)"; stack = stack.Substring(0, 1200) + "...(已截断)";
string atText = ""; string atText = "";
if (atUsers != null && atUsers.Any()) if (atUsers != null && atUsers.Any())