V13: Log webhook firing exceptions when they happen (#15393)

* Refactor Webhook logging to handle exceptions

* Add Exception occured property to WebhookLog.
This commit is contained in:
Nikolaj Geisle
2023-12-07 14:25:26 +01:00
committed by GitHub
parent d31bb14f57
commit b50353b238
12 changed files with 126 additions and 79 deletions

View File

@@ -25,4 +25,6 @@ public class WebhookLog
public string ResponseHeaders { get; set; } = string.Empty;
public string ResponseBody { get; set; } = string.Empty;
public bool ExceptionOccured { get; set; }
}

View File

@@ -1,8 +0,0 @@
namespace Umbraco.Cms.Core.Models;
public class WebhookResponseModel
{
public HttpResponseMessage? HttpResponseMessage { get; set; }
public int RetryCount { get; set; }
}