diff --git a/Server/AuthSession.cs b/Server/AuthSession.cs index c7db002..7a7322f 100644 --- a/Server/AuthSession.cs +++ b/Server/AuthSession.cs @@ -78,7 +78,7 @@ public class AuthSession : TcpSession this._logger.LogDebug("Client Alive time: {ClientAliveTime}", clientAliveTime); this._logger.LogDebug("Might be a flag: {Flag}", buffer[7]); - this._logger.LogDebug("Full buffer: {Buffer}", Encoding.ASCII.GetString(dataBuffer.ToArray())); + this._logger.LogDebug("Full buffer: {Buffer}", BitConverter.ToString(dataBuffer.ToArray())); var rawPacket = new RawPacket((OperationCode)opCode, dataBuffer, clientAliveTime, buffer[7], buffer[4], this.Id, this); diff --git a/Server/Program.cs b/Server/Program.cs index 84b64ba..048c816 100644 --- a/Server/Program.cs +++ b/Server/Program.cs @@ -13,8 +13,8 @@ var builder = Host.CreateApplicationBuilder(); var configurationRoot = builder.Configuration.AddJsonFile("settings.json", false, true) .AddEnvironmentVariables().Build(); builder.Services.AddLogging(); -builder.Logging.AddFile("Logs/Server-{Date}.log", LogLevel.Trace); -builder.Logging.AddFile("Logs/Server-{Date}.json.log", isJson: true, minimumLevel: LogLevel.Trace); +builder.Logging.AddFile("Logs/Server-{Date}.log", LogLevel.Debug); +builder.Logging.AddFile("Logs/Server-{Date}.json.log", isJson: true, minimumLevel: LogLevel.Debug); builder.Services.AddCouchContext(cfg => { cfg.UseEndpoint(configurationRoot["DB:Endpoint"] ?? throw new InvalidOperationException())