Don't throw error messagesfrom Twitter in the bitbucket #54

Merged
mexon merged 1 commit from upstream into master 2012-05-15 05:11:01 +02:00
Showing only changes of commit 63690167dd - Show all commits

Don't throw error messagesfrom Twitter in the bitbucket

Matthew Exon 2012-05-13 08:48:25 +02:00 committed by Matthew Exon

View file

@ -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);
}
}
}
}