MAILBOX-321 Log only in warning when failing to retrieve an attachment
Project: http://git-wip-us.apache.org/repos/asf/james-project/repo Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/a5569335 Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/a5569335 Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/a5569335 Branch: refs/heads/master Commit: a55693355869a8573269065f684b9d243174725a Parents: 9e3d5dc Author: benwa <btell...@linagora.com> Authored: Thu Nov 30 14:57:22 2017 +0700 Committer: Antoine Duprat <adup...@linagora.com> Committed: Thu Nov 30 14:55:36 2017 +0100 ---------------------------------------------------------------------- .../james/mailbox/store/mail/model/impl/MessageParser.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/james-project/blob/a5569335/mailbox/store/src/main/java/org/apache/james/mailbox/store/mail/model/impl/MessageParser.java ---------------------------------------------------------------------- diff --git a/mailbox/store/src/main/java/org/apache/james/mailbox/store/mail/model/impl/MessageParser.java b/mailbox/store/src/main/java/org/apache/james/mailbox/store/mail/model/impl/MessageParser.java index a0273ba..d447b20 100644 --- a/mailbox/store/src/main/java/org/apache/james/mailbox/store/mail/model/impl/MessageParser.java +++ b/mailbox/store/src/main/java/org/apache/james/mailbox/store/mail/model/impl/MessageParser.java @@ -116,9 +116,9 @@ public class MessageParser { try { return Stream.of(retrieveAttachment(entity)); } catch (IllegalStateException e) { - LOGGER.error("The attachment is not well-formed", e); + LOGGER.warn("The attachment is not well-formed", e); } catch (IOException e) { - LOGGER.error("There is an error when retrieving attachment", e); + LOGGER.warn("There is an error when retrieving attachment", e); } } return Stream.empty(); --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org