#2008832 Allow to optionally turn of "successful" actions in watchdog provides a setting to reduce the number of watchdog messages that the module logs.
The setting is not applied to watchdog messages from apache solr delete queries in apachesolr.index.inc.
e.g.
// Log the query used for deletion.
watchdog('Apache Solr', 'Deleted documents from index with query @query', array('@query' => $query), WATCHDOG_INFO);
should be, following the example
// Log the query used for deletion.
$log_success = variable_get('apachesolr_watchdog_successes', TRUE);
if ($log_success) {
watchdog('Apache Solr', 'Deleted documents from index with query @query', array('@query' => $query), WATCHDOG_INFO);
}
Besides three instances in apachesolr.index.inc, I don't see any other watchdog messages for successful queries that don't check the setting.
Comments
Comment #1
calebtr commentedHere is a patch. This reduces log bloat when deleting content is a regular activity or done in batches.
Comment #2
rv0 commentedThanks, works like a charm and patch is clean.
Comment #3
sylvainm commentedPatch works good for me too (tested with migrate imports and rollbacks).
I'd be glad to see this patch applied :-)
Comment #4
jgrubb commentedComment #7
joseph.olstadsee related issue....