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));

View File

@ -49,7 +49,7 @@ class HubOutQueueHandler extends QueueHandler
$msg = "Failed PuSH to $sub->callback for $sub->topic: " .
$e->getMessage();
if ($retries > 0) {
common_log(LOG_ERR, "$msg; scheduling for $retries more tries");
common_log(LOG_INFO, "$msg; scheduling for $retries more tries");
// @fixme when we have infrastructure to schedule a retry
// after a delay, use it.