]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
XMPP debugging: log the message source when discarding empty or unrecognized messages.
authorBrion Vibber <brion@pobox.com>
Wed, 5 May 2010 20:11:36 +0000 (13:11 -0700)
committerBrion Vibber <brion@pobox.com>
Wed, 5 May 2010 20:11:36 +0000 (13:11 -0700)
lib/xmppmanager.php

index cca54db08da4b4a016354ffa1b685564c9900fe8..829eaa36cbe24a976acb671e43d8c03fa84a9722 100644 (file)
@@ -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;
         }