mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-14 20:38:49 +00:00
Force exception conversion to string when logging
This commit is contained in:
parent
e409ffcf06
commit
1666958ad0
2 changed files with 2 additions and 2 deletions
|
@ -105,6 +105,6 @@ function phpmailer_emailer_send_prepare(App $a, IEmail &$email)
|
|||
$email = null;
|
||||
}
|
||||
} catch (Exception $e) {
|
||||
DI::logger()->error('PHPMailer error', ['email' => $email, 'ErrorInfo' => $mailer->ErrorInfo, 'exception' => $e]);
|
||||
DI::logger()->error('PHPMailer error', ['email' => $email, 'ErrorInfo' => $mailer->ErrorInfo, 'exception' => $e->__toString()]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -142,6 +142,6 @@ function securemail_emailer_send_prepare(App &$a, IEmail &$email)
|
|||
$email = $email->withMessage($armored_encrypted, null);
|
||||
|
||||
} catch (Exception $e) {
|
||||
DI::logger()->warning('Encryption failed.', ['email' => $email, 'exception' => $e]);
|
||||
DI::logger()->warning('Encryption failed.', ['email' => $email, 'exception' => $e->__toString()]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue