log exceptions in atom feeds, but don't let them kill the output
This commit is contained in:
parent
dfd65a4290
commit
6968c96b44
|
@ -125,12 +125,17 @@ class AtomNoticeFeed extends Atom10Feed
|
|||
*/
|
||||
function addEntryFromNotice($notice)
|
||||
{
|
||||
try {
|
||||
$source = $this->showSource();
|
||||
$author = $this->showAuthor();
|
||||
|
||||
$cur = empty($this->cur) ? common_current_user() : $this->cur;
|
||||
|
||||
$this->addEntryRaw($notice->asAtomEntry(false, $source, $author, $cur));
|
||||
} catch (Exception $e) {
|
||||
common_log(LOG_ERR, $e->getMessage());
|
||||
// we continue on exceptions
|
||||
}
|
||||
}
|
||||
|
||||
function showSource()
|
||||
|
|
Loading…
Reference in New Issue
Block a user