From 33360cab7fd2d6a41683a4830582103ad985e1cc Mon Sep 17 00:00:00 2001 From: vol4onok Date: Fri, 27 Dec 2024 12:54:24 +0200 Subject: [PATCH 1/3] ACP-4692: Added missing logs --- .../AppWebhook/Business/WebhookHandler/WebhookHandler.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Spryker/Zed/AppWebhook/Business/WebhookHandler/WebhookHandler.php b/src/Spryker/Zed/AppWebhook/Business/WebhookHandler/WebhookHandler.php index 2c459fe..97c7f2c 100644 --- a/src/Spryker/Zed/AppWebhook/Business/WebhookHandler/WebhookHandler.php +++ b/src/Spryker/Zed/AppWebhook/Business/WebhookHandler/WebhookHandler.php @@ -7,6 +7,7 @@ namespace Spryker\Zed\AppWebhook\Business\WebhookHandler; +use Generated\Shared\Transfer\CancelPaymentRequestTransfer; use Generated\Shared\Transfer\SpyWebhookInboxEntityTransfer; use Generated\Shared\Transfer\WebhookRequestTransfer; use Generated\Shared\Transfer\WebhookResponseTransfer; @@ -77,6 +78,12 @@ public function handleWebhook(WebhookRequestTransfer $webhookRequestTransfer, We $this->appWebhookEntityManager->deleteWebhookRequest($webhookRequestTransfer); } } catch (Throwable $throwable) { + $this->getLogger()->error( + $throwable->getMessage(), + [ + 'request_data' => $webhookRequestTransfer->toArray(), + ], + ); $webhookResponseTransfer ->setIsSuccessful(false) ->setMessage($throwable->getMessage()); From 0a04a1d46b5ffef97309aa9cf06164ef86ddc803 Mon Sep 17 00:00:00 2001 From: vol4onok Date: Fri, 27 Dec 2024 13:08:27 +0200 Subject: [PATCH 2/3] ACP-4692: Added missing logs --- .../Zed/AppWebhook/Business/WebhookHandler/WebhookHandler.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Spryker/Zed/AppWebhook/Business/WebhookHandler/WebhookHandler.php b/src/Spryker/Zed/AppWebhook/Business/WebhookHandler/WebhookHandler.php index 97c7f2c..fcf4339 100644 --- a/src/Spryker/Zed/AppWebhook/Business/WebhookHandler/WebhookHandler.php +++ b/src/Spryker/Zed/AppWebhook/Business/WebhookHandler/WebhookHandler.php @@ -7,7 +7,6 @@ namespace Spryker\Zed\AppWebhook\Business\WebhookHandler; -use Generated\Shared\Transfer\CancelPaymentRequestTransfer; use Generated\Shared\Transfer\SpyWebhookInboxEntityTransfer; use Generated\Shared\Transfer\WebhookRequestTransfer; use Generated\Shared\Transfer\WebhookResponseTransfer; From 241113f1b767f39f41148e42c7bdbe783e990305 Mon Sep 17 00:00:00 2001 From: vol4onok Date: Fri, 27 Dec 2024 13:32:08 +0200 Subject: [PATCH 3/3] ACP-4692: Added missing logs --- .../Zed/AppWebhook/Business/WebhookHandler/WebhookHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Spryker/Zed/AppWebhook/Business/WebhookHandler/WebhookHandler.php b/src/Spryker/Zed/AppWebhook/Business/WebhookHandler/WebhookHandler.php index fcf4339..5f8a3ea 100644 --- a/src/Spryker/Zed/AppWebhook/Business/WebhookHandler/WebhookHandler.php +++ b/src/Spryker/Zed/AppWebhook/Business/WebhookHandler/WebhookHandler.php @@ -80,7 +80,7 @@ public function handleWebhook(WebhookRequestTransfer $webhookRequestTransfer, We $this->getLogger()->error( $throwable->getMessage(), [ - 'request_data' => $webhookRequestTransfer->toArray(), + 'request_data' => $webhookRequestTransfer->modifiedToArray(), ], ); $webhookResponseTransfer