Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Catch errors when one email could not be sent #52

Merged
merged 1 commit into from
Oct 13, 2016

Conversation

nickvergessen
Copy link
Member

Signed-off-by: Joas Schilling <coding@schilljs.com>
@nickvergessen
Copy link
Member Author

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

Counting as 👍

@MorrisJobke second review?


try {
$this->mailer->send($message);
} catch (\Exception $e) {
Copy link
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.

Copy link
Member Author

@nickvergessen nickvergessen Oct 13, 2016

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
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