1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2024-12-25 09:12:17 +00:00

don't log signalr heartbeat exceptions as EPIC FAIL.

This commit is contained in:
kay.one 2013-09-14 12:59:06 -07:00
parent bcec14fc9b
commit e2e787261d

View file

@ -21,6 +21,15 @@ private static void TaskException(Exception exception)
private static void AppDomainException(Exception exception)
{
if (exception == null) return;
if (exception is NullReferenceException &&
exception.ToString().Contains("Microsoft.AspNet.SignalR.Transports.TransportHeartbeat.ProcessServerCommand"))
{
Logger.Warn("SignalR Heartbeat error.");
return;
}
Console.WriteLine("EPIC FAIL: {0}", exception);
Logger.FatalException("EPIC FAIL: " + exception.Message, exception);
}