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

skip calling notify method if there are no recipients #2835

Merged
merged 2 commits into from
Dec 19, 2024
Merged

Conversation

havetisyan
Copy link
Collaborator

Description

Contribution Checklist:

  • The pull request does not introduce any breaking changes
  • I have read the contribution guidelines.
  • Create an issue and link to the pull request.

Attach Screenshots (Optional)

// but we want to log it for debugging purposes

if (recipients.isEmpty()) {
LOGGER.error("No recipients specified in the notification. Subject={}", subject);
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be warn instead of error?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

we should treat it as an error since we're trying to send a notification but we don't have recipients.

@havetisyan havetisyan merged commit f8ccfdb into master Dec 19, 2024
7 checks passed
@havetisyan havetisyan deleted the no-recp branch December 19, 2024 23:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants