take out queuing debugging

darcs-hash:20080708070457-34904-8c6d51dc78b9ee08aca9890a833a0572de3b7f76.gz
This commit is contained in:
Evan Prodromou 2008-07-08 03:04:57 -04:00
parent 350b6f63a5
commit ca4fed34b5

View File

@ -875,17 +875,16 @@ function common_broadcast_notice($notice, $remote=false) {
# Stick the notice on the queue # Stick the notice on the queue
function common_enqueue_notice($notice) { function common_enqueue_notice($notice) {
common_log(LOG_INFO, 'start queueing notice ID = ' . $notice->id);
$qi = new Queue_item(); $qi = new Queue_item();
$qi->notice_id = $notice->id; $qi->notice_id = $notice->id;
$qi->created = DB_DataObject_Cast::dateTime(); $qi->created = $notice->created;
$result = $qi->insert(); $result = $qi->insert();
if ($result === FALSE) { if (!$result) {
$last_error = &PEAR::getStaticProperty('DB_DataObject','lastError'); $last_error = &PEAR::getStaticProperty('DB_DataObject','lastError');
common_log(LOG_ERROR, 'DB error inserting queue item: ' . $last_error->message); common_log(LOG_ERROR, 'DB error inserting queue item: ' . $last_error->message);
return false; return false;
} }
common_log(LOG_INFO, 'complete queueing notice ID = ' . $notice->id); common_log(LOG_DEBUG, 'complete queueing notice ID = ' . $notice->id);
return $result; return $result;
} }