Logging.
This commit is contained in:
parent
0ac2abbcd0
commit
9e362b2f87
@ -30,7 +30,7 @@ public class EMailAddressProcessorFactory implements EntityProcessorFactory {
|
||||
}
|
||||
cp.appendProcessor(new ShellProcessor("postmap -r -i /etc/postfix-mailin/virtual || true",
|
||||
email.getEMailAddress() + " " + email.getTarget() + "\n"));
|
||||
logger.log(Level.INFO, "Queue: virtual => create email address record");
|
||||
logger.log(Level.INFO, "Queue: virtual => create email address record (" + email.getEMailAddress()+ ")");
|
||||
WaitingTasksProcessor waitingTasksProcessor = new WaitingTasksProcessor(cp);
|
||||
Config config = Config.getInstance();
|
||||
for (String queueName : config.getProperty("queues.mail").split(",")) {
|
||||
@ -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 + (" + email.getEMailAddress()+ "));
|
||||
logger.log(Level.INFO, "Queue: relayrecipients => create email address record for " + queueName + "(" + email.getEMailAddress()+ ")");
|
||||
}
|
||||
return waitingTasksProcessor;
|
||||
}
|
||||
@ -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 + (" + email.getEMailAddress()+ "));
|
||||
logger.log(Level.INFO, "Queue: relayrecipients => remove email address record for " + queueName + "(" + email.getEMailAddress()+ ")");
|
||||
}
|
||||
return waitingTasksProcessor;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user