diff options
author | Christian Schneppe <christian@pix-art.de> | 2019-02-09 23:20:15 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2019-02-09 23:20:15 +0100 |
commit | 441b1c5d67c84a39b6349d7ad1c0b8319d5712a7 (patch) | |
tree | 97786eb9e1e7605cc0eae4bd3dbab5a0a1199a67 /src/main/java/de/pixart/messenger/xmpp/XmppConnection.java | |
parent | 03d2e220676a5420350e9a1407359c92dd27dc7d (diff) |
print available stream features / mechanisms on incompat server
Diffstat (limited to 'src/main/java/de/pixart/messenger/xmpp/XmppConnection.java')
-rw-r--r-- | src/main/java/de/pixart/messenger/xmpp/XmppConnection.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java b/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java index ae95058fa..98d3b6dba 100644 --- a/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java +++ b/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java @@ -80,6 +80,7 @@ import de.pixart.messenger.utils.Patterns; import de.pixart.messenger.utils.Resolver; import de.pixart.messenger.utils.SSLSocketHelper; import de.pixart.messenger.utils.SocksSocketFactory; +import de.pixart.messenger.utils.XmlHelper; import de.pixart.messenger.xml.Element; import de.pixart.messenger.xml.Tag; import de.pixart.messenger.xml.TagWriter; @@ -874,6 +875,7 @@ public class XmppConnection implements Runnable { if (isSecure) { sendRegistryRequest(); } else { + Log.d(Config.LOGTAG, account.getJid().asBareJid() + ": unable to find STARTTLS for registration process " + XmlHelper.printElementNames(this.streamFeatures)); throw new StateChangingException(Account.State.INCOMPATIBLE_SERVER); } } else if (!this.streamFeatures.hasChild("register") && account.isOptionSet(Account.OPTION_REGISTER)) { @@ -892,6 +894,7 @@ public class XmppConnection implements Runnable { if (this.streamFeatures.hasChild("bind") && isSecure) { sendBindRequest(); } else { + Log.d(Config.LOGTAG, account.getJid().asBareJid() + ": unable to find bind feature " + XmlHelper.printElementNames(this.streamFeatures)); throw new StateChangingException(Account.State.INCOMPATIBLE_SERVER); } } @@ -930,6 +933,7 @@ public class XmppConnection implements Runnable { } tagWriter.writeElement(auth); } else { + Log.d(Config.LOGTAG, account.getJid().asBareJid() + ": unable to find SASL mechanism " + saslMechanism.toString()); throw new StateChangingException(Account.State.INCOMPATIBLE_SERVER); } } |