aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2022-06-28 20:21:39 +0200
committerGitHub <noreply@github.com>2022-06-28 20:21:39 +0200
commitac66483ad5b44fe64da31e15e33ba1cae157298c (patch)
tree1213c7066b64d17d879df39769d48f305bf00825 /lib
parenta1bc7700439c6f06842d42e67a0474de9faef34d (diff)
parentf7eb14a9faa4a0799ec02f639572c8e3cfd1c01f (diff)
downloadnextcloud-server-ac66483ad5b44fe64da31e15e33ba1cae157298c.tar.gz
nextcloud-server-ac66483ad5b44fe64da31e15e33ba1cae157298c.zip
Merge pull request #33042 from nextcloud/bugfix/noid/extend-email-logging
Extend email logging
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Mail/Mailer.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/Mail/Mailer.php b/lib/private/Mail/Mailer.php
index 2f3480498be..991d1b202ec 100644
--- a/lib/private/Mail/Mailer.php
+++ b/lib/private/Mail/Mailer.php
@@ -196,6 +196,9 @@ class Mailer implements IMailer {
// Debugging logging
$logMessage = sprintf('Sent mail to "%s" with subject "%s"', print_r($message->getTo(), true), $message->getSubject());
+ if (!empty($failedRecipients)) {
+ $logMessage .= sprintf(' (failed for "%s")', print_r($failedRecipients, true));
+ }
$this->logger->debug($logMessage, ['app' => 'core']);
if ($debugMode && isset($mailLogger)) {
$this->logger->debug($mailLogger->dump(), ['app' => 'core']);