From 0ac2abbcd09e4f03bf54ddccecac33d6d1e6d706 Mon Sep 17 00:00:00 2001 From: Michael Hierweck Date: Sun, 17 Sep 2017 10:44:41 +0200 Subject: [PATCH] Logging. --- .../mods/email/EMailAddressProcessorFactory.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/hsarback/src/de/hsadmin/mods/email/EMailAddressProcessorFactory.java b/hsarback/src/de/hsadmin/mods/email/EMailAddressProcessorFactory.java index b0ae184..3f513a2 100644 --- a/hsarback/src/de/hsadmin/mods/email/EMailAddressProcessorFactory.java +++ b/hsarback/src/de/hsadmin/mods/email/EMailAddressProcessorFactory.java @@ -26,7 +26,7 @@ public class EMailAddressProcessorFactory implements EntityProcessorFactory { cp.appendProcessor(new ShellProcessor("postmap -r -i /etc/postfix-mailin/virtual || true", email.getFullDomain() + " -\n" + "." + email.getFullDomain() + " -\n")); - logger.log(Level.INFO, "Queue: virtual => create domain record"); + logger.log(Level.INFO, "Queue: virtual => create domain record (" + email.getEMailAddress()+ ")"); } cp.appendProcessor(new ShellProcessor("postmap -r -i /etc/postfix-mailin/virtual || true", email.getEMailAddress() + " " + email.getTarget() + "\n")); @@ -38,7 +38,7 @@ public class EMailAddressProcessorFactory implements EntityProcessorFactory { new ShellProcessor("postmap -r -i /etc/postfix-mailin/relayrecipients || true", email.getEMailAddress() + " anything\n"), "Add to relayrecipients"); - logger.log(Level.INFO, "Queue: relayrecipients => create email address record for " + queueName); + logger.log(Level.INFO, "Queue: relayrecipients => create email address record for " + queueName + (" + email.getEMailAddress()+ ")); } return waitingTasksProcessor; } @@ -58,11 +58,11 @@ public class EMailAddressProcessorFactory implements EntityProcessorFactory { cp.appendProcessor(new ShellProcessor("postmap -d - /etc/postfix-mailin/virtual || true", email.getFullDomain() + "\n" + "." + email.getFullDomain() + "\n")); - logger.log(Level.INFO, "Queue: virtual => remove domain record"); + logger.log(Level.INFO, "Queue: virtual => remove domain record (" + email.getEMailAddress()+ ")"); } cp.appendProcessor(new ShellProcessor("postmap -d - /etc/postfix-mailin/virtual || true", email.getEMailAddress() + "\n")); - logger.log(Level.INFO, "Queue: virtual => remove email address record"); + logger.log(Level.INFO, "Queue: virtual => remove email address record (" + email.getEMailAddress()+ ")"); Config config = Config.getInstance(); WaitingTasksProcessor waitingTasksProcessor = new WaitingTasksProcessor(cp); for (String queueName : config.getProperty("queues.mail").split(",")) { @@ -70,7 +70,7 @@ public class EMailAddressProcessorFactory implements EntityProcessorFactory { new ShellProcessor("postmap -d - /etc/postfix-mailin/relayrecipients || true", email.getEMailAddress() + "\n"), "Remove from relayrecipients"); - logger.log(Level.INFO, "Queue: relayrecipients => remove email address record for " + queueName); + logger.log(Level.INFO, "Queue: relayrecipients => remove email address record for " + queueName + (" + email.getEMailAddress()+ ")); } return waitingTasksProcessor; }