[PRIORITY NEGATIVE ONE/STABLE HOTFIX] ADMIN NOTES CANNOT BE ACCESSED (#40863)
Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com> Fix logger obsolete warnings (#40553)"
This commit is contained in:
committed by
GitHub
parent
9877b77fff
commit
e917c8e067
@@ -14,9 +14,6 @@ namespace Content.Client.Administration.UI.Notes;
|
||||
[GenerateTypedNameReferences]
|
||||
public sealed partial class AdminNotesLine : BoxContainer
|
||||
{
|
||||
[Dependency] private readonly ILogManager _logManager = default!;
|
||||
|
||||
private readonly ISawmill _sawmill = default!;
|
||||
private readonly SpriteSystem _sprites;
|
||||
|
||||
private const string AdminNotesTextureBase = "/Textures/Interface/AdminNotes/";
|
||||
@@ -36,8 +33,6 @@ public sealed partial class AdminNotesLine : BoxContainer
|
||||
public AdminNotesLine(SpriteSystem sprites, SharedAdminNote note)
|
||||
{
|
||||
RobustXamlLoader.Load(this);
|
||||
|
||||
_sawmill = _logManager.GetSawmill("admin.notes");
|
||||
_sprites = sprites;
|
||||
|
||||
Note = note;
|
||||
@@ -66,7 +61,7 @@ public sealed partial class AdminNotesLine : BoxContainer
|
||||
if (iconPath is null)
|
||||
{
|
||||
SeverityRect.Visible = false;
|
||||
_sawmill.Warning($"Could not find an icon for note ID {Note.Id}");
|
||||
Logger.WarningS("admin.notes", $"Could not find an icon for note ID {Note.Id}");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user