summaryrefslogtreecommitdiff
path: root/lib/util.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlezvous.ca>2008-07-08 03:04:57 -0400
committerEvan Prodromou <evan@controlezvous.ca>2008-07-08 03:04:57 -0400
commitca4fed34b53375a16748787d36df4e7cc7341732 (patch)
tree80ce37d9849126ffbeaf591627782a1514199a4a /lib/util.php
parent350b6f63a559a2ad953a11bec2b6f6d713ca867a (diff)
take out queuing debugging
darcs-hash:20080708070457-34904-8c6d51dc78b9ee08aca9890a833a0572de3b7f76.gz
Diffstat (limited to 'lib/util.php')
-rw-r--r--lib/util.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/util.php b/lib/util.php
index 60242eaf7..d08e9d54b 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -875,17 +875,16 @@ function common_broadcast_notice($notice, $remote=false) {
# Stick the notice on the queue
function common_enqueue_notice($notice) {
- common_log(LOG_INFO, 'start queueing notice ID = ' . $notice->id);
$qi = new Queue_item();
$qi->notice_id = $notice->id;
- $qi->created = DB_DataObject_Cast::dateTime();
- $result = $qi->insert();
- if ($result === FALSE) {
+ $qi->created = $notice->created;
+ $result = $qi->insert();
+ if (!$result) {
$last_error = &PEAR::getStaticProperty('DB_DataObject','lastError');
common_log(LOG_ERROR, 'DB error inserting queue item: ' . $last_error->message);
return false;
}
- common_log(LOG_INFO, 'complete queueing notice ID = ' . $notice->id);
+ common_log(LOG_DEBUG, 'complete queueing notice ID = ' . $notice->id);
return $result;
}