From: Mikael Nordfeldth Date: Sat, 26 Dec 2015 15:27:06 +0000 (+0100) Subject: Logging fixes X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=306df3dc3b7780645bd65d5d9a5bbddc7185ae26;p=quix0rs-gnu-social.git Logging fixes --- diff --git a/lib/activityhandlerplugin.php b/lib/activityhandlerplugin.php index 8b2a458454..967454bad5 100644 --- a/lib/activityhandlerplugin.php +++ b/lib/activityhandlerplugin.php @@ -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)); diff --git a/plugins/OStatus/lib/huboutqueuehandler.php b/plugins/OStatus/lib/huboutqueuehandler.php index 67a9d9e36b..9cab847cc2 100644 --- a/plugins/OStatus/lib/huboutqueuehandler.php +++ b/plugins/OStatus/lib/huboutqueuehandler.php @@ -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.