File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change 11
11
### Changed
12
12
- Webhooks now requires Craft 3.7 or later.
13
13
- Improved the performance of clearing out completed webhook request logs. ([ #32 ] ( https://github.com/craftcms/webhooks/issues/32 ) )
14
+ - Exceptions thrown for webhook requests are now logged.
14
15
15
16
### Fixed
16
17
- Fixed an error that could occur when calling ` craft\webhooks\Plugin::getRequestData() ` if an invalid request ID was passed.
Original file line number Diff line number Diff line change @@ -402,6 +402,8 @@ public function sendRequest(int $requestId): bool
402
402
if ($ e instanceof RequestException) {
403
403
$ response = $ e ->getResponse ();
404
404
}
405
+ Craft::warning ("Unable to send webhook: {$ e ->getMessage ()}" , __METHOD__ );
406
+ Craft::$ app ->getErrorHandler ()->logException ($ e );
405
407
}
406
408
407
409
// Update the request
You can’t perform that action at this time.
0 commit comments