]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Add stacktrace to action error logs (#26486)
authorLeon Friedrich <60421075+ElectroJr@users.noreply.github.com>
Thu, 28 Mar 2024 01:16:13 +0000 (14:16 +1300)
committerGitHub <noreply@github.com>
Thu, 28 Mar 2024 01:16:13 +0000 (12:16 +1100)
Add trace to action error logs

Content.Shared/Actions/SharedActionsSystem.cs

index e909f0a8a305058ab2f78fc4954b86127ebb6634..9f3fb964100ba612c749cf582bc37fe551e912c2 100644 (file)
@@ -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;
         }