Logger.StackTrace

This commit is contained in:
龙腾猫跃 committed 2026-07-01 06:58:01 +08:00
1 parent d3daf1988f
commit c18fef7074
3 files changed
+9 -2

No files matched your search

+2 -1
View File
@@ -132,7 +132,8 @@ public abstract class RedoableWorkerBase<TOut>(Func<CancellationToken?, Progress
Succeeded?.Invoke();
} catch (Exception ex) {
if (!ex.IsCanceled())
Logger.Log(ex, $"{creatorMemberName}:运行失败{(pendingRedo ? ",但即将重启,或可忽略" : "")}", pendingRedo ? LogLevel.Info : LogLevel.Warn);
Logger.Log(ex, $"{creatorMemberName}:运行失败{(pendingRedo ? ",但即将重启,或可忽略" : "")}",
pendingRedo ? LogLevel.Warn : LogLevel.Error, LogBehavior.ToastIfDebug);
lock (this) {
realCts?.Dispose();
if (pendingRedo) { // 接取重启请求