From 69e3257cf6a3e68c0c266ba89d99589fcafa5e1a Mon Sep 17 00:00:00 2001 From: Jonas Nilson Date: Sun, 28 Aug 2022 12:05:32 +0200 Subject: [PATCH] Catch and log --- Source/IdleMasterExtended/CookieClient.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/IdleMasterExtended/CookieClient.cs b/Source/IdleMasterExtended/CookieClient.cs index 162f139..5319cb5 100644 --- a/Source/IdleMasterExtended/CookieClient.cs +++ b/Source/IdleMasterExtended/CookieClient.cs @@ -1,5 +1,6 @@ using System; using System.Net; +using System.Security.Policy; using System.Text; using System.Threading.Tasks; using HtmlAgilityPack; @@ -46,9 +47,9 @@ protected override WebResponse GetWebResponse(WebRequest request, System.IAsyncR this.ResponseUri = baseResponse.ResponseUri; return baseResponse; } - catch (Exception) + catch (Exception ex) { - + Logger.Exception(ex, "CookieClient -> WebResponse = " + base.GetWebResponse(request)); } return null; }