mirror of https://github.com/lidarr/Lidarr
don't log signalr heartbeat exceptions as EPIC FAIL.
This commit is contained in:
parent
bcec14fc9b
commit
e2e787261d
|
@ -21,6 +21,15 @@ namespace NzbDrone.Common.Instrumentation
|
||||||
|
|
||||||
private static void AppDomainException(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);
|
Console.WriteLine("EPIC FAIL: {0}", exception);
|
||||||
Logger.FatalException("EPIC FAIL: " + exception.Message, exception);
|
Logger.FatalException("EPIC FAIL: " + exception.Message, exception);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue