mirror of
https://git.muiegratis.online/suikoakari/Campofinale
synced 2025-12-18 04:24:43 +01:00
Improve Logging
This commit is contained in:
@@ -14,6 +14,8 @@ using Campofinale.Game.Spaceship;
|
||||
using Campofinale.Game.Dungeons;
|
||||
using Campofinale.Game.Factory;
|
||||
using Campofinale.Game.Mission;
|
||||
using Pastel;
|
||||
using System.Drawing;
|
||||
|
||||
|
||||
namespace Campofinale
|
||||
@@ -504,8 +506,9 @@ namespace Campofinale
|
||||
|
||||
if (Server.config.logOptions.packets && !Server.csMessageToHide.Contains((CsMsgId)packet.csHead.Msgid))
|
||||
{
|
||||
Logger.Print("CmdId: " + (CsMsgId)packet.csHead.Msgid);
|
||||
Logger.Print(BitConverter.ToString(packet.finishedBody).Replace("-", string.Empty).ToLower());
|
||||
Logger.Print("Recieved Packet: " + ((CsMsgId)packet.csHead.Msgid).ToString().Pastel(Color.LightCyan) + $" Id: {packet.csHead.Msgid} with {packet.finishedBody.Length} Bytes");
|
||||
if (Server.config.logOptions.packetBodies)
|
||||
Logger.Print(BitConverter.ToString(packet.finishedBody).Replace("-", string.Empty).ToLower());
|
||||
}
|
||||
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user