From 94a7924767779d5c68978d450dbb43d3a5ac1968 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Fri, 4 Jul 2008 01:52:59 -0400 Subject: [PATCH] some logging for queues darcs-hash:20080704055259-84dde-1bc6947531632f0d9d93277f6138cc81c82196af.gz --- queuedaemon.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/queuedaemon.php b/queuedaemon.php index 9d8a465a6d..97de21490e 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; -- 2.39.5