When running cron via drush, everytime there are nodes to be indexed by Solr the following is outputted to stderr:
WD Apache Solr: On cron running apachesolr_nodeapi_mass_update() on nids [nids]

This is really annoying for sites with cron running every 5 minutes and lots of node creations/edits. Cron notification emails should only be triggered when something is wrong. The current behaviour of apache solr makes it really hard to find real problems with cron executions and most of the notifications are bogus.

CommentFileSizeAuthor
#5 indexing-1576710-5.patch757 byteskillua99

Comments

nick_vh’s picture

Status: Active » Needs work

Can we change

    watchdog('Apache Solr', 'On cron running apachesolr_nodeapi_mass_update() on nids @nids', array('@nids' => implode(',', array_keys($nodes))), WATCHDOG_WARNING);

to

    watchdog('Apache Solr', 'On cron running apachesolr_nodeapi_mass_update() on nids @nids', array('@nids' => implode(',', array_keys($nodes))), WATCHDOG_NOTICE);

in order to prevent this?

nick_vh’s picture

Category: bug » feature

Also, not a bug, feature request

skwashd’s picture

The proposed fix looks good to me.

I think it is a bug. A feature shouldn't be "stop breaking X".

nick_vh’s picture

Version: 7.x-1.x-dev » 6.x-3.x-dev
Status: Needs work » Patch (to be ported)

Committed to D7. Thanks for your persistance!

killua99’s picture

Status: Patch (to be ported) » Needs review
StatusFileSize
new757 bytes

Backported ...

nick_vh’s picture

Status: Needs review » Fixed

committed to 6.x-3.x. Thanks for backporting!

nick_vh’s picture

Status: Fixed » Closed (fixed)