summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-07-04 01:52:59 -0400
committerEvan Prodromou <evan@prodromou.name>2008-07-04 01:52:59 -0400
commit94a7924767779d5c68978d450dbb43d3a5ac1968 (patch)
tree96969040611dcfb352ca40ccfffdb010c273f939
parentd0897f4d1f04e34cc593d8d5192fb2271cbf5bf9 (diff)
some logging for queues
darcs-hash:20080704055259-84dde-1bc6947531632f0d9d93277f6138cc81c82196af.gz
-rwxr-xr-xqueuedaemon.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/queuedaemon.php b/queuedaemon.php
index 9d8a465a6..97de21490 100755
--- a/queuedaemon.php
+++ b/queuedaemon.php
@@ -52,11 +52,15 @@ function qd_top_item() {
# XXX: potential race condition
# can we force it to only update if claimed is still NULL
# (or old)?
+ qd_log(LOG_INFO, 'claiming queue item = ' . $queue->notice_id);
$orig = clone($qi);
$qi->claimed = DB_DataObject_Cast::dateTime();
$result = $qi->update($orig);
if ($result) {
+ qd_log(LOG_INFO, 'claim succeeded.');
return $qi;
+ } else {
+ qd_log(LOG_INFO, 'claim failed.');
}
}
$qi = NULL;