]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Logging destinations and unnecessary debug
authorMikael Nordfeldth <mmn@hethane.se>
Thu, 31 Dec 2015 12:00:20 +0000 (13:00 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Thu, 31 Dec 2015 12:00:20 +0000 (13:00 +0100)
classes/Queue_item.php
plugins/ActivityModeration/ActivityModerationPlugin.php

index d41c53e0e068dac5a264030d70eaacd5f388d747..2979539b16705fe78053cd8375c53c861dd799c9 100644 (file)
@@ -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;
index 22384ba06b90f7ee3d6ca51cced1f372d9f63ef2..c7a24ba991beaceba3fae7641a59de107f8d62c4 100644 (file)
@@ -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 {