summaryrefslogtreecommitdiff
path: root/lib/xmppmanager.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-05-05 13:11:36 -0700
committerBrion Vibber <brion@pobox.com>2010-05-05 13:11:36 -0700
commitc2bda7726c05c6c7f5ef4f9519e56f107bc4e1e5 (patch)
tree679c1bcd19a82803eb028f6e35ee3a8d0535a875 /lib/xmppmanager.php
parent8260a88f41bb21fe5e5bd25dea15283a08c2224c (diff)
XMPP debugging: log the message source when discarding empty or unrecognized messages.
Diffstat (limited to 'lib/xmppmanager.php')
-rw-r--r--lib/xmppmanager.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/xmppmanager.php b/lib/xmppmanager.php
index cca54db08..829eaa36c 100644
--- a/lib/xmppmanager.php
+++ b/lib/xmppmanager.php
@@ -253,12 +253,12 @@ class XmppManager extends IoManager
$from = jabber_normalize_jid($pl['from']);
if ($pl['type'] != 'chat') {
- $this->log(LOG_WARNING, "Ignoring message of type ".$pl['type']." from $from.");
+ $this->log(LOG_WARNING, "Ignoring message of type ".$pl['type']." from $from: " . $pl['xml']->toString());
return;
}
if (mb_strlen($pl['body']) == 0) {
- $this->log(LOG_WARNING, "Ignoring message with empty body from $from.");
+ $this->log(LOG_WARNING, "Ignoring message with empty body from $from: " . $pl['xml']->toString());
return;
}