From 9abafd83ebf1597ee052a452c2f7a6a82dcb11d9 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Wed, 22 May 2013 16:36:00 -0400 Subject: [PATCH] added more web socket logging --- .../Session/SessionWebSocketListener.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/MediaBrowser.Server.Implementations/Session/SessionWebSocketListener.cs b/MediaBrowser.Server.Implementations/Session/SessionWebSocketListener.cs index 44e833c7a..532436c07 100644 --- a/MediaBrowser.Server.Implementations/Session/SessionWebSocketListener.cs +++ b/MediaBrowser.Server.Implementations/Session/SessionWebSocketListener.cs @@ -72,6 +72,10 @@ namespace MediaBrowser.Server.Implementations.Session session.WebSockets = sockets; } + else + { + _logger.Warn("Unable to determine session based on identity message: {0}", message.Data); + } } else if (string.Equals(message.MessageType, "Context", StringComparison.OrdinalIgnoreCase)) { @@ -86,6 +90,10 @@ namespace MediaBrowser.Server.Implementations.Session session.NowViewingItemName = vals[2]; session.NowViewingContext = vals.Length > 3 ? vals[3] : null; } + else + { + _logger.Warn("Unable to determine session based on context message: {0}", message.Data); + } } else if (string.Equals(message.MessageType, "PlaybackStart", StringComparison.OrdinalIgnoreCase)) {