fix: log swallowed exceptions in date parsing and webhook

This commit is contained in:
Björn Fromme
2026-06-26 17:17:49 +02:00
parent 8907233ef5
commit a8d2852313
2 changed files with 21 additions and 4 deletions
@@ -163,7 +163,12 @@ final class MailjetNewsletterWebhookController extends AbstractController
if (true === is_string($value) && '' !== trim($value)) {
try {
return new \DateTimeImmutable($value);
} catch (\Throwable) {
} catch (\Throwable $e) {
$this->logger->debug('Could not parse event timestamp from Mailjet webhook payload', [
'value' => $value,
'error' => $e->getMessage(),
]);
return null;
}
}