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
|
// XXX: potential race condition
|
||||||
// can we force it to only update if claimed is still null
|
// can we force it to only update if claimed is still null
|
||||||
// (or old)?
|
// (or old)?
|
||||||
common_log(LOG_INFO, 'claiming queue item id = ' . $qi->getID() .
|
common_log(LOG_INFO, 'claiming queue item id = ' . $qi->getID() . ' for transport ' . $qi->transport);
|
||||||
' for transport ' . $qi->transport);
|
|
||||||
$orig = clone($qi);
|
$orig = clone($qi);
|
||||||
$qi->claimed = common_sql_now();
|
$qi->claimed = common_sql_now();
|
||||||
$result = $qi->update($orig);
|
$result = $qi->update($orig);
|
||||||
if ($result) {
|
if ($result) {
|
||||||
common_log(LOG_INFO, 'claim succeeded.');
|
common_log(LOG_DEBUG, 'claim succeeded.');
|
||||||
return $qi;
|
return $qi;
|
||||||
} else {
|
} 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;
|
$qi = null;
|
||||||
|
|
|
@ -146,7 +146,6 @@ class ActivityModerationPlugin extends ActivityVerbHandlerPlugin
|
||||||
}
|
}
|
||||||
//$stored->content = $stored->content ?: _('Notice deleted.');
|
//$stored->content = $stored->content ?: _('Notice deleted.');
|
||||||
//$stored->rendered = $stored->rendered ?: $stored->rendered;
|
//$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.
|
// Let's see if this has been deleted already.
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user