mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
Add stacktrace to action error logs (#26486)
Add trace to action error logs
This commit is contained in:
parent
37b8d78dac
commit
92a444311f
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue