Logging destinations and unnecessary debug

This commit is contained in:
Mikael Nordfeldth 2015-12-31 13:00:20 +01:00
parent fab745c6d6
commit 7f1ce07e9f
2 changed files with 3 additions and 5 deletions

View File

@ -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;

View File

@ -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 {