Skip to content

Commit

Permalink
20282 log when email notification is skipped
Browse files Browse the repository at this point in the history
  • Loading branch information
palina-krukovich committed Nov 29, 2024
1 parent a3da2a4 commit 71699df
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,10 @@ public void process(EventApiEventDto event, Map<String, Object> urbanPopulationP
LOG.info("Found new event, sending email notification. Event ID = '{}', name = '{}'", event.getEventId(), event.getName());

try {
if (!canSendNotification(event.getEventId()))
if (!canSendNotification(event.getEventId())) {
LOG.info("Skipped email notification. Event ID = '{}', name = '{}'", event.getEventId(), event.getName());
return;
}

List<Partner> partners = getPartners(getRelevantLocations(event.getGeometries()));
EmailDto emailDto = emailMessageFormatter.format(event, urbanPopulationProperties, analytics, partners);
Expand Down

0 comments on commit 71699df

Please sign in to comment.