From 73ac8c4476eb793ece13db92de5912a671fc2e53 Mon Sep 17 00:00:00 2001 From: Sebastian Feldmann Date: Fri, 15 Nov 2024 16:25:17 +0100 Subject: [PATCH] Add sendOnlyOnError for webhooks Requested in issue #381 --- doc/config/log/webhook.json | 2 ++ doc/config/log/webhook.xml | 6 ++++++ src/Log/Webhook.php | 33 ++++++++++++++++++++++++++++++++- 3 files changed, 40 insertions(+), 1 deletion(-) diff --git a/doc/config/log/webhook.json b/doc/config/log/webhook.json index f92d0510..e6903398 100644 --- a/doc/config/log/webhook.json +++ b/doc/config/log/webhook.json @@ -2,6 +2,8 @@ "type": "webhook", "options": { "uri": "https://example.com/webhook", + "sendOnlyOnError": false, + "sendOnSimulation": false, "username": "misterX", "password": "secret", "method": "POST", diff --git a/doc/config/log/webhook.xml b/doc/config/log/webhook.xml index 5773f823..036b5968 100644 --- a/doc/config/log/webhook.xml +++ b/doc/config/log/webhook.xml @@ -3,6 +3,12 @@