]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
$this->log to common_log in Queue_item
authorEvan Prodromou <evan@prodromou.name>
Thu, 28 Aug 2008 00:45:03 +0000 (20:45 -0400)
committerEvan Prodromou <evan@prodromou.name>
Thu, 28 Aug 2008 00:45:03 +0000 (20:45 -0400)
darcs-hash:20080828004503-84dde-c406172d750d0a5452d5cc62ecd7b27db381c575.gz

classes/Queue_item.php

index 862511883b4bfe28e648839de9f273efd3e7302b..6b4f5c642ea3d2777c348d9e140a8fbf72c498bc 100644 (file)
@@ -38,15 +38,15 @@ class Queue_item extends DB_DataObject
                        # XXX: potential race condition
                        # can we force it to only update if claimed is still NULL
                        # (or old)?
-                       $this->log(LOG_INFO, 'claiming queue item = ' . $qi->notice_id);
+                       common_log(LOG_INFO, 'claiming queue item = ' . $qi->notice_id);
                        $orig = clone($qi);
                        $qi->claimed = common_sql_now();
                        $result = $qi->update($orig);
                        if ($result) {
-                               $this->log(LOG_INFO, 'claim succeeded.');
+                               common_log(LOG_INFO, 'claim succeeded.');
                                return $qi;
                        } else {
-                               $this->log(LOG_INFO, 'claim failed.');
+                               common_log(LOG_INFO, 'claim failed.');
                        }
                }
                $qi = NULL;