Logger Sawmill Cleanup (#2413)

# Description
Cleaned up Logger obsolete compiler warnings in non robust code.
Should probably be changed to a ISawmill reference in classes to avoid
repeated lookups in heavy logging logic.
---

# Changelog

🆑

- tweak: Logger to Logger.GetSawmill("name");

---------

Co-authored-by: ilmenwe <no@mail.com>

(cherry picked from commit 2e8ffd971716d38dc6d5a520bebdf88b743045a3)
This commit is contained in:
ilmenwe
2025-05-09 01:26:14 +03:00
committed by Spatison
parent 9d79a60c23
commit 432042e945
53 changed files with 130 additions and 93 deletions

View File

@@ -34,7 +34,7 @@ namespace Content.Client.UserInterface.Controls
//this auto registers the button with it's parent container when it's set
if (_slotNameSet)
{
Logger.Warning("Tried to set slotName after init for:" + Name);
Logger.GetSawmill("slot.control").Warning("Tried to set slotName after init for:" + Name);
return;
}
_slotNameSet = true;