Remove dead code and improve logging

This commit is contained in:
Bond-009
2019-12-27 15:20:27 +01:00
committed by Bond_009
parent 4d311870d2
commit 8865b3ea3d
7 changed files with 18 additions and 175 deletions

View File

@@ -195,7 +195,7 @@ namespace Emby.Server.Implementations.HttpServer
// Tell the PipeReader how much of the buffer we have consumed
reader.AdvanceTo(buffer.End);
_logger.LogDebug("WS received message: {@Message}", stub);
_logger.LogDebug("WS {IP} received message: {@Message}", RemoteEndPoint, stub);
var info = new WebSocketMessageInfo
{
@@ -204,7 +204,7 @@ namespace Emby.Server.Implementations.HttpServer
Connection = this
};
_logger.LogDebug("WS message info: {@MessageInfo}", info);
_logger.LogDebug("WS {IP} message info: {@MessageInfo}", RemoteEndPoint, info);
await OnReceive(info).ConfigureAwait(false);