From 23201d5f0f4370de807500beb490013f70892694 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Sun, 17 Jan 2016 18:00:50 +0100 Subject: [PATCH] Improve logging of failed presence extensions Don't log the exception for now because the stack trace makes to much noise in the log output. This is mostly caused by Googles outdated Entity Capabilities implementation. --- .../java/org/jivesoftware/smack/util/PacketParserUtils.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/smack-core/src/main/java/org/jivesoftware/smack/util/PacketParserUtils.java b/smack-core/src/main/java/org/jivesoftware/smack/util/PacketParserUtils.java index 401ea80c9..e1aef4773 100644 --- a/smack-core/src/main/java/org/jivesoftware/smack/util/PacketParserUtils.java +++ b/smack-core/src/main/java/org/jivesoftware/smack/util/PacketParserUtils.java @@ -578,9 +578,8 @@ public class PacketParserUtils { try { PacketParserUtils.addExtensionElement(presence, parser, elementName, namespace); } catch (Exception e) { - LOGGER.log(Level.WARNING, - "Failed to parse extension packet in Presence packet. Attributes: from=" - + presence.getFrom() + " id=" + presence.getStanzaId(), e); + LOGGER.warning("Failed to parse extension element in Presence stanza: \"" + e + "\" from: '" + + presence.getFrom() + " id: '" + presence.getStanzaId() + "'"); } break; }