From: DrSmugleaf Date: Sat, 11 Nov 2023 06:46:42 +0000 (-0800) Subject: Fix missing if statement when logging missing action error (#21560) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=1a3d3a3ed02a1ac71e340e1aace9211b561652c7;p=space-station-14.git Fix missing if statement when logging missing action error (#21560) --- diff --git a/Content.Shared/Actions/SharedActionsSystem.cs b/Content.Shared/Actions/SharedActionsSystem.cs index 46ef2058ad..0e9a03cd5a 100644 --- a/Content.Shared/Actions/SharedActionsSystem.cs +++ b/Content.Shared/Actions/SharedActionsSystem.cs @@ -96,7 +96,9 @@ public abstract class SharedActionsSystem : EntitySystem if (result != null) return true; - Log.Error($"Failed to get action from action entity: {ToPrettyString(uid.Value)}"); + if (logError) + Log.Error($"Failed to get action from action entity: {ToPrettyString(uid.Value)}"); + return false; }