When changing anything with content, apachesolr fires off a watchdog warning when the environment is in read-only mode. This can cause a great deal of log pollution. I'd like to be able to turn these warnings off, especially in cases where update hooks are make mass changes.

I'll submit a patch that abstracts the verification and logging of read-only mode with a variable that can be used to disable the logging.

Comments

KeyboardCowboy created an issue. See original summary.

KeyboardCowboy’s picture

Status: Active » Needs review
StatusFileSize
new4.62 KB

Adding patch.

Status: Needs review » Needs work

The last submitted patch, 2: apachesolr-disable_watchdog_readonly-2863134-2.patch, failed testing.

KeyboardCowboy’s picture

StatusFileSize
new4.91 KB

Rerolling patch with correct file paths.

KeyboardCowboy’s picture

Status: Needs work » Needs review
Grayside’s picture

Status: Needs review » Reviewed & tested by the community
janusman’s picture

Patch didn't apply anymore (surprise!) New, clean patch.

janusman’s picture

Status: Reviewed & tested by the community » Needs review
StatusFileSize
new4.83 KB

So in our patches apachesolr_index_report_readonly() was outputting __FUNCTION__ which would always be .. itself instead of the caller :) New patch.

Status: Needs review » Needs work

  • janusman authored 7046485 on 7.x-1.x
    Issue #2863134 by KeyboardCowboy, janusman: Allow Watchdog Warnings for...
janusman’s picture

Status: Needs work » Fixed

Also committed small change to avoid linter error.

Fixed!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.