From: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Date: Thu, 28 Mar 2024 01:16:13 +0000 (+1300) Subject: Add stacktrace to action error logs (#26486) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=92a444311f57dde668cfc583e621e1db87555aea;p=space-station-14.git Add stacktrace to action error logs (#26486) Add trace to action error logs --- diff --git a/Content.Shared/Actions/SharedActionsSystem.cs b/Content.Shared/Actions/SharedActionsSystem.cs index e909f0a8a3..9f3fb96410 100644 --- a/Content.Shared/Actions/SharedActionsSystem.cs +++ b/Content.Shared/Actions/SharedActionsSystem.cs @@ -124,7 +124,7 @@ public abstract class SharedActionsSystem : EntitySystem return true; if (logError) - Log.Error($"Failed to get action from action entity: {ToPrettyString(uid.Value)}"); + Log.Error($"Failed to get action from action entity: {ToPrettyString(uid.Value)}. Trace: {Environment.StackTrace}"); return false; } @@ -804,7 +804,7 @@ public abstract class SharedActionsSystem : EntitySystem || !comp.Actions.Contains(actionId.Value)); if (!GameTiming.ApplyingState) - Log.Error($"Attempted to remove an action {ToPrettyString(actionId)} from an entity that it was never attached to: {ToPrettyString(performer)}"); + Log.Error($"Attempted to remove an action {ToPrettyString(actionId)} from an entity that it was never attached to: {ToPrettyString(performer)}. Trace: {Environment.StackTrace}"); return; }