From 712f089f81159b1049f99a2d8e685206cfa3f07b Mon Sep 17 00:00:00 2001 From: Kamron Batman <3953314+kamronbatman@users.noreply.github.com> Date: Thu, 10 Nov 2022 14:47:56 -0800 Subject: [PATCH] fix: Fixes serilog logging (#1237) --- Projects/Server/World/World.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Projects/Server/World/World.cs b/Projects/Server/World/World.cs index 0b5ddac7e..4de6fe937 100644 --- a/Projects/Server/World/World.cs +++ b/Projects/Server/World/World.cs @@ -162,7 +162,7 @@ public static class World { if (WorldState != WorldState.Saving) { - logger.Warning($"Attempting to queue {item} for decay but the world is not saving"); + logger.Warning("Attempting to queue {Item} for decay but the world is not saving", item); return; } @@ -655,7 +655,7 @@ public static class World { if (_pendingDelete.Remove(entity.Serial)) { - logger.Warning($"Deleted then added {entity.GetType().Name} during {WorldState.ToString()} state."); + logger.Warning("Deleted then added {Entity} during {WorldState} state.", entity.GetType().Name, WorldState.ToString()); } _pendingAdd[entity.Serial] = entity; break;