From: Tayrtahn Date: Wed, 21 May 2025 16:23:35 +0000 (-0400) Subject: Remove static logger calls in `LateJoinGui` (#37688) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=ecf9e855f639d62ce63ee4506b755fec614208b0;p=space-station-14.git Remove static logger calls in `LateJoinGui` (#37688) * Cleanup 2 static logger calls in LateJoinGui * That's not how that works --- diff --git a/Content.Client/LateJoin/LateJoinGui.cs b/Content.Client/LateJoin/LateJoinGui.cs index 7d1921816f..ae62e64ff8 100644 --- a/Content.Client/LateJoin/LateJoinGui.cs +++ b/Content.Client/LateJoin/LateJoinGui.cs @@ -29,12 +29,14 @@ namespace Content.Client.LateJoin [Dependency] private readonly IEntitySystemManager _entitySystem = default!; [Dependency] private readonly JobRequirementsManager _jobRequirements = default!; [Dependency] private readonly IClientPreferencesManager _preferencesManager = default!; + [Dependency] private readonly ILogManager _logManager = default!; public event Action<(NetEntity, string)> SelectedId; private readonly ClientGameTicker _gameTicker; private readonly SpriteSystem _sprites; private readonly CrewManifestSystem _crewManifest; + private readonly ISawmill _sawmill; private readonly Dictionary>> _jobButtons = new(); private readonly Dictionary> _jobCategories = new(); @@ -49,6 +51,7 @@ namespace Content.Client.LateJoin _sprites = _entitySystem.GetEntitySystem(); _crewManifest = _entitySystem.GetEntitySystem(); _gameTicker = _entitySystem.GetEntitySystem(); + _sawmill = _logManager.GetSawmill("latejoin.panel"); Title = Loc.GetString("late-join-gui-title"); @@ -66,7 +69,7 @@ namespace Content.Client.LateJoin SelectedId += x => { var (station, jobId) = x; - Logger.InfoS("latejoin", $"Late joining as ID: {jobId}"); + _sawmill.Info($"Late joining as ID: {jobId}"); _consoleHost.ExecuteCommand($"joingame {CommandParsing.Escape(jobId)} {station}"); Close(); }; @@ -82,7 +85,7 @@ namespace Content.Client.LateJoin _jobCategories.Clear(); if (!_gameTicker.DisallowedLateJoin && _gameTicker.StationNames.Count == 0) - Logger.Warning("No stations exist, nothing to display in late-join GUI"); + _sawmill.Warning("No stations exist, nothing to display in late-join GUI"); foreach (var (id, name) in _gameTicker.StationNames) {