Skip to content

fix: remove error log for no co proposers in email - #1236

Merged
bolmsten merged 5 commits into
developfrom
1295-Change-log-level-for-no-recipients-email-error
Oct 29, 2025
Merged

fix: remove error log for no co proposers in email#1236
bolmsten merged 5 commits into
developfrom
1295-Change-log-level-for-no-recipients-email-error

Conversation

@ellen-wright

Copy link
Copy Markdown
Contributor

refs: #1295

Description

Motivation and Context

There was a repeated error log that triggered when an email was sent with no co-proposers that has been filling up the logs.

Changes

I have added a check so the error is not triggered if there are no co-proposers as this is a valid use case

Depends on

Tests included/Docs Updated?

  • I have added tests to cover my changes.
  • All relevant doc has been updated

@ellen-wright
ellen-wright requested a review from a team as a code owner October 22, 2025 11:55
@ellen-wright
ellen-wright requested review from bashanlam and removed request for a team October 22, 2025 11:55
@ellen-wright ellen-wright changed the title Remove error log for no co proposers in email fix: remove error log for no co proposers in email Oct 22, 2025
if (!recipientsWithData.length) {
if (!recipientsWithData.length && messageType != 'CoProposer') {
logger.logInfo('Could not send email(s) because there are no recipients.', {
recipientsWithData,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do we need this log at all? And if so would not recipientsWithData always be an empty array as that is the if statement?

Comment thread apps/backend/src/statusActionEngine/emailActionHandler.ts Outdated
@bolmsten
bolmsten merged commit acff9d3 into develop Oct 29, 2025
36 of 37 checks passed
@bolmsten
bolmsten deleted the 1295-Change-log-level-for-no-recipients-email-error branch October 29, 2025 10:28
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.

3 participants