From 2508d5389cb3c28fa81ae1a1f487fe9d3ef67769 Mon Sep 17 00:00:00 2001 From: Stephan Richter Date: Sat, 30 Apr 2022 13:19:05 +0200 Subject: [PATCH] bugfix in debug output --- pom.xml | 2 +- src/main/java/de/srsoftware/widerhall/mail/ImapClient.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 072e79f..43115bf 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ org.example Widerhall - 0.2.55 + 0.2.56 diff --git a/src/main/java/de/srsoftware/widerhall/mail/ImapClient.java b/src/main/java/de/srsoftware/widerhall/mail/ImapClient.java index d09a3df..bf8f79b 100644 --- a/src/main/java/de/srsoftware/widerhall/mail/ImapClient.java +++ b/src/main/java/de/srsoftware/widerhall/mail/ImapClient.java @@ -154,7 +154,7 @@ public class ImapClient { Date receivedDate = message.getReceivedDate(); Duration duration = Duration.between(receivedDate.toInstant(),now.toInstant()); var days = duration.toDays(); - LOG.info("Message {} is {} days old!"); + LOG.info("Message {} is {} days old!",days); if (days > holdTime){ Folder folder = message.getFolder(); if (!folder.isOpen()) folder.open(Folder.READ_WRITE);