Logging fixes
This commit is contained in:
parent
ace47a4512
commit
306df3dc3b
|
@ -585,7 +585,8 @@ abstract class ActivityHandlerPlugin extends Plugin
|
||||||
try {
|
try {
|
||||||
$this->showNoticeListItem($nli);
|
$this->showNoticeListItem($nli);
|
||||||
} catch (Exception $e) {
|
} 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));
|
Event::handle('EndShowNoticeItem', array($nli));
|
||||||
|
|
|
@ -49,7 +49,7 @@ class HubOutQueueHandler extends QueueHandler
|
||||||
$msg = "Failed PuSH to $sub->callback for $sub->topic: " .
|
$msg = "Failed PuSH to $sub->callback for $sub->topic: " .
|
||||||
$e->getMessage();
|
$e->getMessage();
|
||||||
if ($retries > 0) {
|
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
|
// @fixme when we have infrastructure to schedule a retry
|
||||||
// after a delay, use it.
|
// after a delay, use it.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user