summaryrefslogtreecommitdiff
path: root/classes/Queue_item.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-08-27 20:45:03 -0400
committerEvan Prodromou <evan@prodromou.name>2008-08-27 20:45:03 -0400
commit6b1f391306b79c3083663d87faee4dc8fa3fea5f (patch)
treec441b44a674a4ae868018dd8f4d576b7001ee613 /classes/Queue_item.php
parent27fff6ff04fad26daaa149b38ee95c91d9ad5d24 (diff)
$this->log to common_log in Queue_item
darcs-hash:20080828004503-84dde-c406172d750d0a5452d5cc62ecd7b27db381c575.gz
Diffstat (limited to 'classes/Queue_item.php')
-rw-r--r--classes/Queue_item.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/classes/Queue_item.php b/classes/Queue_item.php
index 862511883..6b4f5c642 100644
--- a/classes/Queue_item.php
+++ b/classes/Queue_item.php
@@ -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;