Logging destinations and unnecessary debug
This commit is contained in:
parent
fab745c6d6
commit
7f1ce07e9f
@ -68,16 +68,15 @@ class Queue_item extends Managed_DataObject
|
||||
// XXX: potential race condition
|
||||
// can we force it to only update if claimed is still null
|
||||
// (or old)?
|
||||
common_log(LOG_INFO, 'claiming queue item id = ' . $qi->getID() .
|
||||
' for transport ' . $qi->transport);
|
||||
common_log(LOG_INFO, 'claiming queue item id = ' . $qi->getID() . ' for transport ' . $qi->transport);
|
||||
$orig = clone($qi);
|
||||
$qi->claimed = common_sql_now();
|
||||
$result = $qi->update($orig);
|
||||
if ($result) {
|
||||
common_log(LOG_INFO, 'claim succeeded.');
|
||||
common_log(LOG_DEBUG, 'claim succeeded.');
|
||||
return $qi;
|
||||
} else {
|
||||
common_log(LOG_INFO, 'claim failed.');
|
||||
common_log(LOG_ERROR, 'claim of queue item id= ' . $qi->getID() . ' for transport ' . $qi->transport . ' failed.');
|
||||
}
|
||||
}
|
||||
$qi = null;
|
||||
|
@ -146,7 +146,6 @@ class ActivityModerationPlugin extends ActivityVerbHandlerPlugin
|
||||
}
|
||||
//$stored->content = $stored->content ?: _('Notice deleted.');
|
||||
//$stored->rendered = $stored->rendered ?: $stored->rendered;
|
||||
common_debug('DELETENOTICE: Replacement notice has been prepared: '.var_export($stored, true));
|
||||
|
||||
// Let's see if this has been deleted already.
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user