From 2da3bc98cd20dff5fe9d0a4ca1edca0863a6a9d3 Mon Sep 17 00:00:00 2001 From: Timothy Schenk Date: Mon, 6 Nov 2023 10:17:58 +0100 Subject: [PATCH] chore: logging --- Server/Services/PacketDistributorService.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Server/Services/PacketDistributorService.cs b/Server/Services/PacketDistributorService.cs index 107fbce..32175be 100644 --- a/Server/Services/PacketDistributorService.cs +++ b/Server/Services/PacketDistributorService.cs @@ -89,7 +89,7 @@ public class PacketDistributorService : IHostedService return packetsWithId; } - LoggerMessages.PacketLoggerMessages.NoPacketsFound(this._logger); + this._logger.NoPacketsFound(); throw new IncompleteInitialization(); } @@ -121,7 +121,7 @@ public class PacketDistributorService : IHostedService return packetHandlersWithId; } - LoggerMessages.PacketLoggerMessages.NoPacketHandlersFound(this._logger); + this._logger.NoPacketHandlersFound(); throw new IncompleteInitialization(); } @@ -150,7 +150,7 @@ public class PacketDistributorService : IHostedService } var packet = value(item.MessageBody); - LoggerMessages.PacketLoggerMessages.PacketData(this._logger, JsonConvert.SerializeObject(packet)); + this._logger.PacketData(JsonConvert.SerializeObject(packet)); this._packetHandlersInstantiation[item.OperationCode].GetType() .GetMethod(nameof(IPacketHandler.HandleAsync)) ?.Invoke(this._packetHandlersInstantiation[item.OperationCode], new object[] { packet, item.Session });