Alleviate attack log spam (#7218)

This commit is contained in:
ShadowCommander
2022-03-22 19:08:28 -07:00
committed by GitHub
parent bba096f1a4
commit 1fa3587d1c

View File

@@ -229,7 +229,7 @@ namespace Content.Server.Interaction
if (ev.Handled) 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; return;
} }
} }
@@ -242,12 +242,12 @@ namespace Content.Server.Interaction
{ {
if (target != null) 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}"); $"{ToPrettyString(user):user} attacked {ToPrettyString(target.Value):target} with {ToPrettyString(item.Value):used} at {coordinates}");
} }
else else
{ {
_adminLogSystem.Add(LogType.AttackArmedClick, LogImpact.Medium, _adminLogSystem.Add(LogType.AttackArmedClick, LogImpact.Low,
$"{ToPrettyString(user):user} attacked with {ToPrettyString(item.Value):used} at {coordinates}"); $"{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); var ev = new WideAttackEvent(user, user, coordinates);
RaiseLocalEvent(user, ev, false); RaiseLocalEvent(user, ev, false);
if (ev.Handled) 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 else
{ {
@@ -280,12 +280,12 @@ namespace Content.Server.Interaction
{ {
if (target != null) 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}"); $"{ToPrettyString(user):user} attacked {ToPrettyString(target.Value):target} at {coordinates}");
} }
else else
{ {
_adminLogSystem.Add(LogType.AttackUnarmedClick, LogImpact.Medium, _adminLogSystem.Add(LogType.AttackUnarmedClick, LogImpact.Low,
$"{ToPrettyString(user):user} attacked at {coordinates}"); $"{ToPrettyString(user):user} attacked at {coordinates}");
} }
} }