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 <btell...@linagora.com>
Authored: Tue Jul 31 15:53:37 2018 +0700
Committer: benwa <btell...@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-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org

Reply via email to