Add stacktrace to action error logs (#26486)
Add trace to action error logs
This commit is contained in:
@@ -124,7 +124,7 @@ public abstract class SharedActionsSystem : EntitySystem
|
|||||||
return true;
|
return true;
|
||||||
|
|
||||||
if (logError)
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -804,7 +804,7 @@ public abstract class SharedActionsSystem : EntitySystem
|
|||||||
|| !comp.Actions.Contains(actionId.Value));
|
|| !comp.Actions.Contains(actionId.Value));
|
||||||
|
|
||||||
if (!GameTiming.ApplyingState)
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user