camel git commit: CAMEL-10544: Better log that exception at debug level

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

camel git commit: CAMEL-10544: Better log that exception at debug level

bvahdat
Repository: camel
Updated Branches:
  refs/heads/master d9c74627c -> 4938eee27


CAMEL-10544: Better log that exception at debug level


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/4938eee2
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/4938eee2
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/4938eee2

Branch: refs/heads/master
Commit: 4938eee27a4249573143cf713dfe139e0d50a75e
Parents: d9c7462
Author: Babak Vahdat <[hidden email]>
Authored: Thu May 18 10:29:09 2017 +0200
Committer: Babak Vahdat <[hidden email]>
Committed: Thu May 18 10:29:09 2017 +0200

----------------------------------------------------------------------
 .../main/java/org/apache/camel/component/xmpp/XmppConstants.java   | 2 +-
 .../main/java/org/apache/camel/component/xmpp/XmppConsumer.java    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/4938eee2/components/camel-xmpp/src/main/java/org/apache/camel/component/xmpp/XmppConstants.java
----------------------------------------------------------------------
diff --git a/components/camel-xmpp/src/main/java/org/apache/camel/component/xmpp/XmppConstants.java b/components/camel-xmpp/src/main/java/org/apache/camel/component/xmpp/XmppConstants.java
index 4e54522..4875e93 100644
--- a/components/camel-xmpp/src/main/java/org/apache/camel/component/xmpp/XmppConstants.java
+++ b/components/camel-xmpp/src/main/java/org/apache/camel/component/xmpp/XmppConstants.java
@@ -26,7 +26,7 @@ public interface XmppConstants {
     String FROM = "CamelXmppFrom";
 
     /**
-     * @deprecated use {@link #STANZA_ID}
+     * @deprecated use {@link #STANZA_ID} instead.
      */
     @Deprecated
     String PACKET_ID = "CamelXmppPacketID";

http://git-wip-us.apache.org/repos/asf/camel/blob/4938eee2/components/camel-xmpp/src/main/java/org/apache/camel/component/xmpp/XmppConsumer.java
----------------------------------------------------------------------
diff --git a/components/camel-xmpp/src/main/java/org/apache/camel/component/xmpp/XmppConsumer.java b/components/camel-xmpp/src/main/java/org/apache/camel/component/xmpp/XmppConsumer.java
index 0c2fa47..22b9347 100644
--- a/components/camel-xmpp/src/main/java/org/apache/camel/component/xmpp/XmppConsumer.java
+++ b/components/camel-xmpp/src/main/java/org/apache/camel/component/xmpp/XmppConsumer.java
@@ -227,7 +227,7 @@ public class XmppConsumer extends DefaultConsumer implements IncomingChatMessage
                 try {
                     muc.pollMessage();
                 } catch (MultiUserChatException.MucNotJoinedException e) {
-                    LOG.warn(e.getMessage(), e);
+                    LOG.debug("Error while polling message from MultiUserChat. This exception will be ignored.", e);
                 }
             }
         }