You've already forked Sonarr
mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-07-17 01:32:30 +02:00
added logging for signalr exception
This commit is contained in:
@ -6,6 +6,7 @@ using System.Diagnostics;
|
|||||||
using System.Diagnostics.CodeAnalysis;
|
using System.Diagnostics.CodeAnalysis;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using System.Runtime.Serialization;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
@ -234,6 +235,12 @@ namespace Microsoft.AspNet.SignalR.Infrastructure
|
|||||||
else if (message.IsCommand)
|
else if (message.IsCommand)
|
||||||
{
|
{
|
||||||
var command = _serializer.Parse<Command>(message.Value, message.Encoding);
|
var command = _serializer.Parse<Command>(message.Value, message.Encoding);
|
||||||
|
|
||||||
|
if (command == null)
|
||||||
|
{
|
||||||
|
throw new SerializationException("Couldn't parse message " + message.Value);
|
||||||
|
}
|
||||||
|
|
||||||
ProcessCommand(command);
|
ProcessCommand(command);
|
||||||
|
|
||||||
// Only send the ack if this command is waiting for it
|
// Only send the ack if this command is waiting for it
|
||||||
|
Reference in New Issue
Block a user