From: Matthew Exon Date: Sun, 13 May 2012 06:48:25 +0000 (+0200) Subject: Don't throw error messagesfrom Twitter in the bitbucket X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=63690167dd7ef3eee24e07c0aee66b6c4192b290;p=friendica-addons.git Don't throw error messagesfrom Twitter in the bitbucket --- diff --git a/twitter/twitter.php b/twitter/twitter.php index 978cc039..0a609b05 100755 --- a/twitter/twitter.php +++ b/twitter/twitter.php @@ -357,7 +357,10 @@ function twitter_post_hook(&$a,&$b) { // and now tweet it :-) if(strlen($msg)) { $result = $tweet->post('statuses/update', array('status' => $msg)); - logger('twitter_post send' , LOGGER_DEBUG); + logger('twitter_post send, result: ' . print_r($result, true), LOGGER_DEBUG); + if ($result->error) { + logger('Send to Twitter failed: "' . $result->error . '"', LOGGER_ERROR); + } } } }