]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
OStatus: debug aid - log the received Salmon post when it can't be parsed properly...
authorBrion Vibber <brion@pobox.com>
Sun, 21 Feb 2010 18:48:48 +0000 (10:48 -0800)
committerBrion Vibber <brion@pobox.com>
Sun, 21 Feb 2010 18:48:48 +0000 (10:48 -0800)
plugins/OStatus/lib/salmonaction.php

index abd8d4c83397c4c831814beebf1a56a3f2f4b13b..4e5ed7fe6aa8672618393cbaae4129c155fb585f 100644 (file)
@@ -51,6 +51,7 @@ class SalmonAction extends Action
 
         if ($dom->documentElement->namespaceURI != Activity::ATOM ||
             $dom->documentElement->localName != 'entry') {
+            common_log(LOG_DEBUG, "Got invalid Salmon post: $xml");
             $this->clientError(_m('Salmon post must be an Atom entry.'));
         }
         // XXX: check the signature