You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by bt...@apache.org on 2018/08/01 11:06:43 UTC

[06/12] james-project git commit: JAMES-2509 Silent JMS mail queue logs when closing the session

JAMES-2509 Silent JMS mail queue logs when closing the session


Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/d10c8f45
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/d10c8f45
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/d10c8f45

Branch: refs/heads/master
Commit: d10c8f45a76b6aa07b3f1abab5b48e439ecf5af7
Parents: f74bde1
Author: benwa <bt...@linagora.com>
Authored: Tue Jul 31 15:53:37 2018 +0700
Committer: benwa <bt...@linagora.com>
Committed: Wed Aug 1 18:04:25 2018 +0700

----------------------------------------------------------------------
 .../main/java/org/apache/james/queue/jms/JMSMailQueue.java   | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/d10c8f45/server/queue/queue-jms/src/main/java/org/apache/james/queue/jms/JMSMailQueue.java
----------------------------------------------------------------------
diff --git a/server/queue/queue-jms/src/main/java/org/apache/james/queue/jms/JMSMailQueue.java b/server/queue/queue-jms/src/main/java/org/apache/james/queue/jms/JMSMailQueue.java
index f31a23b..0517d59 100644
--- a/server/queue/queue-jms/src/main/java/org/apache/james/queue/jms/JMSMailQueue.java
+++ b/server/queue/queue-jms/src/main/java/org/apache/james/queue/jms/JMSMailQueue.java
@@ -90,7 +90,7 @@ public class JMSMailQueue implements ManageableMailQueue, JMSSupport, MailPriori
             try {
                 session.close();
             } catch (JMSException e) {
-                LOGGER.error("Error while closing session", e);
+                // Ignore. See JAMES-2509
             }
         }
     }
@@ -100,7 +100,7 @@ public class JMSMailQueue implements ManageableMailQueue, JMSSupport, MailPriori
             try {
                 producer.close();
             } catch (JMSException e) {
-                LOGGER.error("Error while closing producer", e);
+                // Ignore. See JAMES-2509
             }
         }
     }
@@ -110,7 +110,7 @@ public class JMSMailQueue implements ManageableMailQueue, JMSSupport, MailPriori
             try {
                 consumer.close();
             } catch (JMSException e) {
-                LOGGER.error("Error while closing consumer", e);
+                // Ignore. See JAMES-2509
             }
         }
     }
@@ -130,7 +130,7 @@ public class JMSMailQueue implements ManageableMailQueue, JMSSupport, MailPriori
             try {
                 browser.close();
             } catch (JMSException e) {
-                LOGGER.error("Error while closing browser", e);
+                // Ignore. See JAMES-2509
             }
         }
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org