From f7adb1947467d66776c66afbc746b5299f7f3a7d Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sun, 31 May 2015 00:10:45 -0700 Subject: [PATCH] Ignore more signalr non-errors --- src/NzbDrone.Host/Owin/NlogTextWriter.cs | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/src/NzbDrone.Host/Owin/NlogTextWriter.cs b/src/NzbDrone.Host/Owin/NlogTextWriter.cs index 44c14ae27..17c0ce8e9 100644 --- a/src/NzbDrone.Host/Owin/NlogTextWriter.cs +++ b/src/NzbDrone.Host/Owin/NlogTextWriter.cs @@ -58,15 +58,23 @@ namespace NzbDrone.Host.Owin { return LogLevel.Trace; } - - if (lower.Contains("signalr") && lower.Contains("an operation was attempted on a nonexistent network connection")) + + if (lower.Contains("signalr")) { - return LogLevel.Trace; - } + if (lower.Contains("an operation was attempted on a nonexistent network connection")) + { + return LogLevel.Trace; + } - if (lower.Contains("signalr") && lower.Contains("the network connection was aborted by the local system")) - { - return LogLevel.Trace; + if (lower.Contains("the network connection was aborted by the local system")) + { + return LogLevel.Trace; + } + + if (lower.Contains("the socket has been shut down")) + { + return LogLevel.Trace; + } } return LogLevel.Error;