From f3f655a8f9cc4ab5e0c555f21250a0c9b88d5130 Mon Sep 17 00:00:00 2001 From: Tayrtahn Date: Fri, 23 May 2025 13:12:28 -0400 Subject: [PATCH] Cleanup warnings in `SalvageExpeditionConsoleBoundUserInterface` (#37757) Clean 2 warnings in SalvageExpeditionConsoleBoundUserInterface --- .../UI/SalvageExpeditionConsoleBoundUserInterface.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Content.Client/Salvage/UI/SalvageExpeditionConsoleBoundUserInterface.cs b/Content.Client/Salvage/UI/SalvageExpeditionConsoleBoundUserInterface.cs index 1832f61c82..6eb2944ea9 100644 --- a/Content.Client/Salvage/UI/SalvageExpeditionConsoleBoundUserInterface.cs +++ b/Content.Client/Salvage/UI/SalvageExpeditionConsoleBoundUserInterface.cs @@ -20,11 +20,15 @@ public sealed class SalvageExpeditionConsoleBoundUserInterface : BoundUserInterf [Dependency] private readonly IConfigurationManager _cfgManager = default!; [Dependency] private readonly IEntityManager _entManager = default!; + [Dependency] private readonly ILogManager _logManager = default!; [Dependency] private readonly IPrototypeManager _protoManager = default!; + private readonly ISawmill _sawmill; + public SalvageExpeditionConsoleBoundUserInterface(EntityUid owner, Enum uiKey) : base(owner, uiKey) { IoCManager.InjectDependencies(this); + _sawmill = _logManager.GetSawmill("salvage.expedition.console"); } protected override void Open() @@ -111,7 +115,7 @@ public sealed class SalvageExpeditionConsoleBoundUserInterface : BoundUserInterf string LogAndReturnDefaultFactionDescription(string faction) { - Logger.Error($"Description is null or white space for SalvageFactionPrototype: {faction}"); + _sawmill.Error($"Description is null or white space for SalvageFactionPrototype: {faction}"); return Loc.GetString(_protoManager.Index(faction).ID); } @@ -150,7 +154,7 @@ public sealed class SalvageExpeditionConsoleBoundUserInterface : BoundUserInterf string LogAndReturnDefaultBiomDescription(string biome) { - Logger.Error($"Description is null or white space for SalvageBiomeModPrototype: {biome}"); + _sawmill.Error($"Description is null or white space for SalvageBiomeModPrototype: {biome}"); return Loc.GetString(_protoManager.Index(biome).ID); } -- 2.51.2