git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit b798faf9 authored by Brion Vibber's avatar Brion Vibber

OStatus: abort processing of this PuSH in item if we got an exception, rather...

OStatus: abort processing of this PuSH in item if we got an exception, rather than letting it be re-run.
parent 10884dcd
......@@ -40,7 +40,11 @@ class PushInQueueHandler extends QueueHandler
$feedsub = FeedSub::staticGet('id', $feedsub_id);
if ($feedsub) {
$feedsub->receive($post, $hmac);
try {
$feedsub->receive($post, $hmac);
} catch(Exception $e) {
common_log(LOG_ERR, "Exception during PuSH input processing for $feedsub->uri: " . $e->getMessage());
}
} else {
common_log(LOG_ERR, "Discarding POST to unknown feed subscription id $feedsub_id");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment