Fix client-side log spam (#16222)
This commit is contained in:
@@ -130,6 +130,7 @@ public abstract class SharedAnomalySystem : EntitySystem
|
||||
var variation = Random.NextFloat(-component.PulseVariation, component.PulseVariation) + 1;
|
||||
component.NextPulseTime = Timing.CurTime + GetPulseLength(component) * variation;
|
||||
|
||||
if (_net.IsServer)
|
||||
_sawmill.Info($"Performing anomaly pulse. Entity: {ToPrettyString(uid)}");
|
||||
|
||||
// if we are above the growth threshold, then grow before the pulse
|
||||
@@ -164,6 +165,7 @@ public abstract class SharedAnomalySystem : EntitySystem
|
||||
return;
|
||||
|
||||
Log.Add(LogType.Anomaly, LogImpact.High, $"Anomaly {ToPrettyString(uid)} began to go supercritical.");
|
||||
if (_net.IsServer)
|
||||
_sawmill.Info($"Anomaly is going supercritical. Entity: {ToPrettyString(uid)}");
|
||||
|
||||
var super = EnsureComp<AnomalySupercriticalComponent>(uid);
|
||||
@@ -189,7 +191,9 @@ public abstract class SharedAnomalySystem : EntitySystem
|
||||
|
||||
Audio.PlayPvs(component.SupercriticalSound, uid);
|
||||
|
||||
if (_net.IsServer)
|
||||
_sawmill.Info($"Raising supercritical event. Entity: {ToPrettyString(uid)}");
|
||||
|
||||
var ev = new AnomalySupercriticalEvent();
|
||||
RaiseLocalEvent(uid, ref ev);
|
||||
|
||||
@@ -205,6 +209,7 @@ public abstract class SharedAnomalySystem : EntitySystem
|
||||
public void EndAnomaly(EntityUid uid, AnomalyComponent? component = null, bool supercritical = false)
|
||||
{
|
||||
// Logging before resolve, in case the anomaly has deleted itself.
|
||||
if (_net.IsServer)
|
||||
_sawmill.Info($"Ending anomaly. Entity: {ToPrettyString(uid)}");
|
||||
Log.Add(LogType.Anomaly, LogImpact.Extreme, $"Anomaly {ToPrettyString(uid)} went supercritical.");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user