Remove static logger calls in LateJoinGui (#37688)
* Cleanup 2 static logger calls in LateJoinGui * That's not how that works
This commit is contained in:
@@ -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<NetEntity, Dictionary<string, List<JobButton>>> _jobButtons = new();
|
||||
private readonly Dictionary<NetEntity, Dictionary<string, BoxContainer>> _jobCategories = new();
|
||||
@@ -49,6 +51,7 @@ namespace Content.Client.LateJoin
|
||||
_sprites = _entitySystem.GetEntitySystem<SpriteSystem>();
|
||||
_crewManifest = _entitySystem.GetEntitySystem<CrewManifestSystem>();
|
||||
_gameTicker = _entitySystem.GetEntitySystem<ClientGameTicker>();
|
||||
_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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user