From 92a444311f57dde668cfc583e621e1db87555aea Mon Sep 17 00:00:00 2001 From: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Date: Thu, 28 Mar 2024 14:16:13 +1300 Subject: [PATCH] Add stacktrace to action error logs (#26486) Add trace to action error logs --- Content.Shared/Actions/SharedActionsSystem.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.51.2