From 7d96d4d64413640a739b18c0336714ed185d59a6 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sat, 6 Dec 2014 09:07:13 -0800 Subject: [PATCH] Log cert issues at debug (need to deal with self signed certs) --- .../Security/X509CertificateValidationPolicy.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/NzbDrone.Common/Security/X509CertificateValidationPolicy.cs b/src/NzbDrone.Common/Security/X509CertificateValidationPolicy.cs index 606782101..54fc355bc 100644 --- a/src/NzbDrone.Common/Security/X509CertificateValidationPolicy.cs +++ b/src/NzbDrone.Common/Security/X509CertificateValidationPolicy.cs @@ -15,7 +15,7 @@ public static void Register() ServicePointManager.ServerCertificateValidationCallback = ShouldByPassValidationError; } - private static bool ShouldByPassValidationError(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslpolicyerrors) + private static bool ShouldByPassValidationError(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors) { var request = sender as HttpWebRequest; @@ -24,12 +24,12 @@ private static bool ShouldByPassValidationError(object sender, X509Certificate c return true; } - if (sslpolicyerrors == SslPolicyErrors.None) + if (sslPolicyErrors == SslPolicyErrors.None) { return true; } - Logger.Error("Request for {0} failed certificated validation. {1}", request.Address, sslpolicyerrors); + Logger.Debug("Certificate validation for {0} failed. {1}", request.Address, sslPolicyErrors); return true; }