]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Add error logging for a couple send-fail cases in XMPP out
authorBrion Vibber <brion@pobox.com>
Wed, 10 Nov 2010 23:26:18 +0000 (15:26 -0800)
committerBrion Vibber <brion@pobox.com>
Wed, 10 Nov 2010 23:26:18 +0000 (15:26 -0800)
lib/xmppmanager.php

index 7acd7663a220f5f4ec77a38ab7b1f219bb32a6f5..238696664a160fa509bf2c5bf220480ce83d1f54 100644 (file)
@@ -198,10 +198,12 @@ class XmppManager extends IoManager
                 $this->conn->processTime(0);
                 return true;
             } else {
+                common_log(LOG_ERR, __METHOD__ . ' failed: 0 bytes sent');
                 return false;
             }
         } else {
             // Can't send right now...
+            common_log(LOG_ERR, __METHOD__ . ' failed: XMPP server connection currently down');
             return false;
         }
     }