chg: [sentry] Capture exception with message

pull/9106/head
Jakub Onderka 2023-05-25 17:01:16 +02:00
parent 3e4edf46f7
commit 018652cb09
1 changed files with 1 additions and 1 deletions

View File

@ -3657,7 +3657,7 @@ class AppModel extends Model
{
// If Sentry is installed, send exception to Sentry
if (function_exists('\Sentry\captureException') && $type === LOG_ERR) {
\Sentry\captureException($exception);
\Sentry\captureException(new Exception($message, $type, $exception));
}
$message .= "\n";