Obsolete Logger cleanup for EntitySystems (#25941)
* Small obsolete Logger cleanup * Fixed three EntitySystem logs that weren't doing it right.
This commit is contained in:
@@ -156,7 +156,7 @@ public sealed partial class ExplosionSystem
|
||||
#endif
|
||||
}
|
||||
|
||||
Logger.InfoS("Explosion", $"Processed {TilesPerTick - tilesRemaining} tiles in {Stopwatch.Elapsed.TotalMilliseconds}ms");
|
||||
Log.Info($"Processed {TilesPerTick - tilesRemaining} tiles in {Stopwatch.Elapsed.TotalMilliseconds}ms");
|
||||
|
||||
// we have finished processing our tiles. Is there still an ongoing explosion?
|
||||
if (_activeExplosion != null)
|
||||
|
||||
@@ -37,7 +37,7 @@ public sealed partial class ExplosionSystem : EntitySystem
|
||||
|
||||
if (!_explosionTypes.TryGetValue(typeID, out var typeIndex))
|
||||
{
|
||||
Logger.Error("Attempted to spawn explosion using a prototype that was not defined during initialization. Explosion prototype hot-reload is not currently supported.");
|
||||
Log.Error("Attempted to spawn explosion using a prototype that was not defined during initialization. Explosion prototype hot-reload is not currently supported.");
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@@ -290,7 +290,7 @@ public sealed partial class ExplosionSystem : EntitySystem
|
||||
|
||||
if (!_prototypeManager.TryIndex<ExplosionPrototype>(typeId, out var type))
|
||||
{
|
||||
Logger.Error($"Attempted to spawn unknown explosion prototype: {type}");
|
||||
Log.Error($"Attempted to spawn unknown explosion prototype: {type}");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ public sealed class SmokeOnTriggerSystem : SharedSmokeOnTriggerSystem
|
||||
var ent = Spawn(comp.SmokePrototype, coords.SnapToGrid());
|
||||
if (!TryComp<SmokeComponent>(ent, out var smoke))
|
||||
{
|
||||
Logger.Error($"Smoke prototype {comp.SmokePrototype} was missing SmokeComponent");
|
||||
Log.Error($"Smoke prototype {comp.SmokePrototype} was missing SmokeComponent");
|
||||
Del(ent);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user