mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-29 15:32:06 +01:00
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.
This commit is contained in:
parent
e6a9027cc6
commit
23201d5f0f
1 changed files with 2 additions and 3 deletions
|
@ -578,9 +578,8 @@ public class PacketParserUtils {
|
||||||
try {
|
try {
|
||||||
PacketParserUtils.addExtensionElement(presence, parser, elementName, namespace);
|
PacketParserUtils.addExtensionElement(presence, parser, elementName, namespace);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
LOGGER.log(Level.WARNING,
|
LOGGER.warning("Failed to parse extension element in Presence stanza: \"" + e + "\" from: '"
|
||||||
"Failed to parse extension packet in Presence packet. Attributes: from="
|
+ presence.getFrom() + " id: '" + presence.getStanzaId() + "'");
|
||||||
+ presence.getFrom() + " id=" + presence.getStanzaId(), e);
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue