From 7f1ce07e9f5774d36fada5300eff745e4c80a971 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Thu, 31 Dec 2015 13:00:20 +0100 Subject: [PATCH] Logging destinations and unnecessary debug --- classes/Queue_item.php | 7 +++---- plugins/ActivityModeration/ActivityModerationPlugin.php | 1 - 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/classes/Queue_item.php b/classes/Queue_item.php index d41c53e0e0..2979539b16 100644 --- a/classes/Queue_item.php +++ b/classes/Queue_item.php @@ -68,16 +68,15 @@ class Queue_item extends Managed_DataObject // XXX: potential race condition // can we force it to only update if claimed is still null // (or old)? - common_log(LOG_INFO, 'claiming queue item id = ' . $qi->getID() . - ' for transport ' . $qi->transport); + common_log(LOG_INFO, 'claiming queue item id = ' . $qi->getID() . ' for transport ' . $qi->transport); $orig = clone($qi); $qi->claimed = common_sql_now(); $result = $qi->update($orig); if ($result) { - common_log(LOG_INFO, 'claim succeeded.'); + common_log(LOG_DEBUG, 'claim succeeded.'); return $qi; } else { - common_log(LOG_INFO, 'claim failed.'); + common_log(LOG_ERROR, 'claim of queue item id= ' . $qi->getID() . ' for transport ' . $qi->transport . ' failed.'); } } $qi = null; diff --git a/plugins/ActivityModeration/ActivityModerationPlugin.php b/plugins/ActivityModeration/ActivityModerationPlugin.php index 22384ba06b..c7a24ba991 100644 --- a/plugins/ActivityModeration/ActivityModerationPlugin.php +++ b/plugins/ActivityModeration/ActivityModerationPlugin.php @@ -146,7 +146,6 @@ class ActivityModerationPlugin extends ActivityVerbHandlerPlugin } //$stored->content = $stored->content ?: _('Notice deleted.'); //$stored->rendered = $stored->rendered ?: $stored->rendered; - common_debug('DELETENOTICE: Replacement notice has been prepared: '.var_export($stored, true)); // Let's see if this has been deleted already. try { -- 2.39.5