summaryrefslogtreecommitdiff
path: root/plugins/TwitterBridge
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2010-02-15 21:23:26 +0000
committerZach Copley <zach@status.net>2010-02-15 21:24:12 +0000
commitead595eee8d62a35272491061994da44c30c8174 (patch)
tree58d2b159b1a55d0f6e8ffb9e9fa1c2b56c3ea9e7 /plugins/TwitterBridge
parent82033b3773ac0fc95236716388a02bb6d2da2cab (diff)
Better log msgs. Removed debugging statement.
Diffstat (limited to 'plugins/TwitterBridge')
-rw-r--r--plugins/TwitterBridge/twitter.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins/TwitterBridge/twitter.php b/plugins/TwitterBridge/twitter.php
index 1d46aa2c9..1aeba112f 100644
--- a/plugins/TwitterBridge/twitter.php
+++ b/plugins/TwitterBridge/twitter.php
@@ -28,8 +28,6 @@ require_once INSTALLDIR . '/plugins/TwitterBridge/twitteroauthclient.php';
function add_twitter_user($twitter_id, $screen_name)
{
- common_debug("Add Twitter user");
-
$new_uri = 'http://twitter.com/' . $screen_name;
// Clear out any bad old foreign_users with the new user's legit URL
@@ -42,8 +40,8 @@ function add_twitter_user($twitter_id, $screen_name)
$result = $luser->delete();
if ($result != false) {
- common_log(LOG_WARNING,
- "Twitter bridge - removed invalid Twitter user squatting on uri: $new_uri");
+ common_log(LOG_INFO,
+ "Twitter bridge - removed old Twitter user: $screen_name ($twitter_id).");
}
$luser->free();
@@ -65,7 +63,8 @@ function add_twitter_user($twitter_id, $screen_name)
"Twitter bridge - failed to add new Twitter user: $twitter_id - $screen_name.");
common_log_db_error($fuser, 'INSERT', __FILE__);
} else {
- common_debug("Twitter bridge - Added new Twitter user: $screen_name ($twitter_id).");
+ common_log(LOG_INFO,
+ "Twitter bridge - Added new Twitter user: $screen_name ($twitter_id).");
}
return $result;