From b0fb4a77f19e4fe6cec5c61f1db459d67e07023d Mon Sep 17 00:00:00 2001 From: Marc Gorzala Date: Mon, 8 Apr 2024 17:02:42 +0200 Subject: [PATCH] debug --- .../net/dancier/kikeriki/application/CheckAndSendService.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/net/dancier/kikeriki/application/CheckAndSendService.java b/src/main/java/net/dancier/kikeriki/application/CheckAndSendService.java index 890aeb6..8bb7108 100644 --- a/src/main/java/net/dancier/kikeriki/application/CheckAndSendService.java +++ b/src/main/java/net/dancier/kikeriki/application/CheckAndSendService.java @@ -39,6 +39,8 @@ public void checkAndSend(String dancerId) { if (state.isCandidateForSendingMail(LocalDateTime.now())) { sendMail(dancerId, state); statePort.save(state.toDto(), dancerId); + } else { + log.info("Not an candidate for sending mail"); } } public void sendMail(String dancerId, State state) {