Logging fixes

This commit is contained in:
Mikael Nordfeldth
2015-12-26 16:27:06 +01:00
parent ace47a4512
commit 306df3dc3b
2 changed files with 3 additions and 2 deletions

View File

@@ -585,7 +585,8 @@ abstract class ActivityHandlerPlugin extends Plugin
try {
$this->showNoticeListItem($nli);
} catch (Exception $e) {
$nli->out->element('p', 'error', 'Error showing notice: '.htmlspecialchars($e->getMessage()));
common_log(LOG_ERR, 'Error showing notice: ' . $e->getMessage());
$nli->out->element('p', 'error', sprintf(_('Error showing notice: %s'), $e->getMessage()));
}
Event::handle('EndShowNoticeItem', array($nli));