Merge pull request #56097 from nextcloud/backport/56090/stable31

This commit is contained in:
Kate 2025-10-30 13:09:39 +01:00 committed by GitHub
commit 6779ac7dd7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -206,7 +206,7 @@ class Mailer implements IMailer {
$mailer->send($message->getSymfonyEmail());
} catch (TransportExceptionInterface $e) {
$logMessage = sprintf('Sending mail to "%s" with subject "%s" failed', print_r($message->getTo(), true), $message->getSubject());
$this->logger->debug($logMessage, ['app' => 'core', 'exception' => $e]);
$this->logger->error($logMessage, ['app' => 'core', 'exception' => $e]);
if ($debugMode) {
$this->logger->debug($e->getDebug(), ['app' => 'core']);
}