From: Tayrtahn Date: Fri, 23 May 2025 17:12:28 +0000 (-0400) Subject: Cleanup warnings in `SalvageExpeditionConsoleBoundUserInterface` (#37757) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=f3f655a8f9cc4ab5e0c555f21250a0c9b88d5130;p=space-station-14.git Cleanup warnings in `SalvageExpeditionConsoleBoundUserInterface` (#37757) Clean 2 warnings in SalvageExpeditionConsoleBoundUserInterface --- 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); }