Dequeue notice when we hit any Facebook error.

This commit is contained in:
Zach Copley 2010-05-25 15:40:38 +00:00
parent 9cde924bb3
commit 09dab2ce5a

View File

@ -229,8 +229,8 @@ function handleFacebookError($e, $notice, $flink)
default: default:
$msg = "FacebookPlugin - Facebook returned an error we don't know how to deal with while trying to " $msg = "FacebookPlugin - Facebook returned an error we don't know how to deal with while trying to "
. "post notice %d. Error code: %d, error message: \"%s\". (Notice details: " . "post notice %d. Error code: %d, error message: \"%s\". (Notice details: "
. "nickname=%s, user ID=%d, Facebook ID=%d, notice content=\"%s\"). Re-queueing " . "nickname=%s, user ID=%d, Facebook ID=%d, notice content=\"%s\"). Removing notice "
. "notice, and will try to send again later."; . "from the Facebook queue for safety.";
common_log( common_log(
LOG_ERR, sprintf( LOG_ERR, sprintf(
$msg, $msg,
@ -243,8 +243,7 @@ function handleFacebookError($e, $notice, $flink)
$notice->content $notice->content
) )
); );
// Re-queue and try again later return true; // dequeue
return false;
break; break;
} }
} }