From 655d285946c1955cf54993325b42da2421869dde Mon Sep 17 00:00:00 2001 From: Stephan Richter Date: Fri, 22 Apr 2022 00:22:18 +0200 Subject: [PATCH] altered logging behaviour, disabled reload button --- pom.xml | 2 +- src/main/java/de/srsoftware/widerhall/data/MailingList.java | 2 +- src/main/java/de/srsoftware/widerhall/mail/ImapClient.java | 6 +++--- static/templates/navigation.st | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pom.xml b/pom.xml index d08f4ab..b4e7d47 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ org.example Widerhall - 0.2.11 + 0.2.12 diff --git a/src/main/java/de/srsoftware/widerhall/data/MailingList.java b/src/main/java/de/srsoftware/widerhall/data/MailingList.java index d7e753a..bc2323e 100644 --- a/src/main/java/de/srsoftware/widerhall/data/MailingList.java +++ b/src/main/java/de/srsoftware/widerhall/data/MailingList.java @@ -320,7 +320,7 @@ public class MailingList implements MessageHandler { @Override public void onMessageReceived(Message message) throws MessagingException { - LOG.debug("Message received: {}",message.getFrom()); + LOG.info("Message received: {}",message.getFrom()); String subject = message.getSubject(); if (subject.toLowerCase().contains("undelivered")){ try { diff --git a/src/main/java/de/srsoftware/widerhall/mail/ImapClient.java b/src/main/java/de/srsoftware/widerhall/mail/ImapClient.java index e1d58ce..bb364fd 100644 --- a/src/main/java/de/srsoftware/widerhall/mail/ImapClient.java +++ b/src/main/java/de/srsoftware/widerhall/mail/ImapClient.java @@ -179,10 +179,10 @@ public class ImapClient { public ImapClient start() { stop(); - LOG.debug("Creating ListeningThread…"); + LOG.info("Creating ListeningThread for {}…",username); (listeningThread = new ListeningThread()).start(); - LOG.debug("Creating Heartbeat…"); + LOG.info("Creating Heartbeat for {}…",username); (heartbeat = new Heartbeat()).start(); return this; @@ -190,7 +190,7 @@ public class ImapClient { public ImapClient stop(){ if (listeningThread != null) { - LOG.debug("Stopping old ListeningThread…"); + LOG.info("Stopping old ListeningThread for {}…",username); listeningThread.dropListeners().doStop(); listeningThread = null; } diff --git a/static/templates/navigation.st b/static/templates/navigation.st index 5f76d05..3718c00 100644 --- a/static/templates/navigation.st +++ b/static/templates/navigation.st @@ -1,5 +1,5 @@ \ No newline at end of file