JAMES-2085 LMTP should use error upon unexpected exceptions
Project: http://git-wip-us.apache.org/repos/asf/james-project/repo Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/6ed945b9 Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/6ed945b9 Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/6ed945b9 Branch: refs/heads/master Commit: 6ed945b96b7c02813f4b61912a2fbd357bdeee15 Parents: ae4c8ff Author: benwa <btell...@linagora.com> Authored: Mon Jul 3 11:50:40 2017 +0700 Committer: benwa <btell...@linagora.com> Committed: Wed Jul 5 17:13:29 2017 +0700 ---------------------------------------------------------------------- .../lmtpserver/hook/MailboxDeliverToRecipientHandler.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/james-project/blob/6ed945b9/server/protocols/protocols-lmtp/src/main/java/org/apache/james/lmtpserver/hook/MailboxDeliverToRecipientHandler.java ---------------------------------------------------------------------- diff --git a/server/protocols/protocols-lmtp/src/main/java/org/apache/james/lmtpserver/hook/MailboxDeliverToRecipientHandler.java b/server/protocols/protocols-lmtp/src/main/java/org/apache/james/lmtpserver/hook/MailboxDeliverToRecipientHandler.java index cd891b2..11d93b8 100644 --- a/server/protocols/protocols-lmtp/src/main/java/org/apache/james/lmtpserver/hook/MailboxDeliverToRecipientHandler.java +++ b/server/protocols/protocols-lmtp/src/main/java/org/apache/james/lmtpserver/hook/MailboxDeliverToRecipientHandler.java @@ -23,7 +23,7 @@ import java.io.IOException; import java.util.Date; import javax.inject.Inject; -import javax.inject.Named; +import javax.inject.Named; import org.apache.commons.configuration.Configuration; import org.apache.commons.configuration.ConfigurationException; @@ -59,7 +59,7 @@ public class MailboxDeliverToRecipientHandler implements DeliverToRecipientHook } @Inject - public final void setMailboxManager(@Named("mailboxmanager") MailboxManager mailboxManager) { + public final void setMailboxManager(@Named("mailboxmanager") MailboxManager mailboxManager) { this.mailboxManager = mailboxManager; } @@ -90,13 +90,13 @@ public class MailboxDeliverToRecipientHandler implements DeliverToRecipientHook result = new HookResult(HookReturnCode.OK, SMTPRetCode.MAIL_OK, DSNStatus.getStatus(DSNStatus.SUCCESS, DSNStatus.CONTENT_OTHER) + " Message received"); } catch (IOException e) { - session.getLogger().info("Unexpected error handling DATA stream", e); + session.getLogger().error("Unexpected error handling DATA stream", e); result = new HookResult(HookReturnCode.DENYSOFT, " Temporary error deliver message to " + recipient); } catch (MailboxException e) { - session.getLogger().info("Unexpected error handling DATA stream", e); + session.getLogger().error("Unexpected error handling DATA stream", e); result = new HookResult(HookReturnCode.DENYSOFT, " Temporary error deliver message to " + recipient); } catch (UsersRepositoryException e) { - session.getLogger().info("Unexpected error handling DATA stream", e); + session.getLogger().error("Unexpected error handling DATA stream", e); result = new HookResult(HookReturnCode.DENYSOFT, " Temporary error deliver message to " + recipient); } return result; --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org