]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Cleanup warnings in `SalvageExpeditionConsoleBoundUserInterface` (#37757)
authorTayrtahn <tayrtahn@gmail.com>
Fri, 23 May 2025 17:12:28 +0000 (13:12 -0400)
committerGitHub <noreply@github.com>
Fri, 23 May 2025 17:12:28 +0000 (13:12 -0400)
Clean 2 warnings in SalvageExpeditionConsoleBoundUserInterface

Content.Client/Salvage/UI/SalvageExpeditionConsoleBoundUserInterface.cs

index 1832f61c827a378ff57c857a9dfcab6cda49be6b..6eb2944ea9bf7c563ebe909b4eeb0e9a7317f385 100644 (file)
@@ -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<SalvageFactionPrototype>(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<SalvageBiomeModPrototype>(biome).ID);
             }