From: Mikael Nordfeldth Date: Thu, 31 Dec 2015 12:00:20 +0000 (+0100) Subject: Logging destinations and unnecessary debug X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7f1ce07e9f5774d36fada5300eff745e4c80a971;p=quix0rs-gnu-social.git Logging destinations and unnecessary debug --- 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 {