aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-12-27 20:40:17 +0100
committerChristian Schneppe <christian@pix-art.de>2018-12-27 20:40:17 +0100
commitae2b61afb6c9284d53bffd7af3f84ba55ee2056b (patch)
treeeff5cf8d3d55607a3cce50123699e62c8dfe9e43 /src/main/java/de/pixart/messenger/xmpp/XmppConnection.java
parent7a3e2db6c90ffd7a5fa1b5e91d84df2e7367fa6d (diff)
log policy violation stream error message to logcat
Diffstat (limited to 'src/main/java/de/pixart/messenger/xmpp/XmppConnection.java')
-rw-r--r--src/main/java/de/pixart/messenger/xmpp/XmppConnection.java4
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 c92653444..bea8a496c 100644
--- a/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java
+++ b/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java
@@ -1339,6 +1339,10 @@ public class XmppConnection implements Runnable {
} else if (streamError.hasChild("host-unknown")) {
throw new StateChangingException(Account.State.HOST_UNKNOWN);
} else if (streamError.hasChild("policy-violation")) {
+ final String text = streamError.findChildContent("text");
+ if (text != null) {
+ Log.d(Config.LOGTAG, account.getJid().asBareJid() + ": policy violation. " + text);
+ }
throw new StateChangingException(Account.State.POLICY_VIOLATION);
} else {
Log.d(Config.LOGTAG, account.getJid().asBareJid() + ": stream error " + streamError.toString());