Skip to content

Catch errors when one email could not be sent - #52

Merged
MorrisJobke merged 1 commit into
masterfrom
server-1716-activity-sending-timeout
Oct 13, 2016
Merged

MorrisJobke merged 1 commit into
masterfrom
server-1716-activity-sending-timeout

Conversation

@nickvergessen

Copy link
Copy Markdown
Member

@nickvergessen

Copy link
Copy Markdown
Member Author

Tested by @volker-raschek in nextcloud/server#1716 (comment)

Counting as 👍

@MorrisJobke second review?

Comment thread lib/MailQueueHandler.php

try {
$this->mailer->send($message);
} catch (\Exception $e) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is always really bad 🙈 Then an exception is simply dropped - at least having it in debug mode visible would make this traceable.

@nickvergessen nickvergessen Oct 13, 2016 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's logged one step outside in lib/BackgroundJob/EmailNotification.php:

$this->logger->debug("Failed sending activity mail to user '" . $user . "'.", ['app' => 'activity']);

@MorrisJobke

Copy link
Copy Markdown
Member

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants