From 1fa3587d1c416b89e7e4d8d8452fe9361e4af57f Mon Sep 17 00:00:00 2001 From: ShadowCommander <10494922+ShadowCommander@users.noreply.github.com> Date: Tue, 22 Mar 2022 19:08:28 -0700 Subject: [PATCH] Alleviate attack log spam (#7218) --- Content.Server/Interaction/InteractionSystem.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Content.Server/Interaction/InteractionSystem.cs b/Content.Server/Interaction/InteractionSystem.cs index 7a87b0ea26..8b64e8e15f 100644 --- a/Content.Server/Interaction/InteractionSystem.cs +++ b/Content.Server/Interaction/InteractionSystem.cs @@ -229,7 +229,7 @@ namespace Content.Server.Interaction if (ev.Handled) { - _adminLogSystem.Add(LogType.AttackArmedWide, LogImpact.Medium, $"{ToPrettyString(user):user} wide attacked with {ToPrettyString(item.Value):used} at {coordinates}"); + _adminLogSystem.Add(LogType.AttackArmedWide, LogImpact.Low, $"{ToPrettyString(user):user} wide attacked with {ToPrettyString(item.Value):used} at {coordinates}"); return; } } @@ -242,12 +242,12 @@ namespace Content.Server.Interaction { if (target != null) { - _adminLogSystem.Add(LogType.AttackArmedClick, LogImpact.Medium, + _adminLogSystem.Add(LogType.AttackArmedClick, LogImpact.Low, $"{ToPrettyString(user):user} attacked {ToPrettyString(target.Value):target} with {ToPrettyString(item.Value):used} at {coordinates}"); } else { - _adminLogSystem.Add(LogType.AttackArmedClick, LogImpact.Medium, + _adminLogSystem.Add(LogType.AttackArmedClick, LogImpact.Low, $"{ToPrettyString(user):user} attacked with {ToPrettyString(item.Value):used} at {coordinates}"); } @@ -270,7 +270,7 @@ namespace Content.Server.Interaction var ev = new WideAttackEvent(user, user, coordinates); RaiseLocalEvent(user, ev, false); if (ev.Handled) - _adminLogSystem.Add(LogType.AttackUnarmedWide, $"{ToPrettyString(user):user} wide attacked at {coordinates}"); + _adminLogSystem.Add(LogType.AttackUnarmedWide, LogImpact.Low, $"{ToPrettyString(user):user} wide attacked at {coordinates}"); } else { @@ -280,12 +280,12 @@ namespace Content.Server.Interaction { if (target != null) { - _adminLogSystem.Add(LogType.AttackUnarmedClick, LogImpact.Medium, + _adminLogSystem.Add(LogType.AttackUnarmedClick, LogImpact.Low, $"{ToPrettyString(user):user} attacked {ToPrettyString(target.Value):target} at {coordinates}"); } else { - _adminLogSystem.Add(LogType.AttackUnarmedClick, LogImpact.Medium, + _adminLogSystem.Add(LogType.AttackUnarmedClick, LogImpact.Low, $"{ToPrettyString(user):user} attacked at {coordinates}"); } }