Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#8 | apachesolr-disable_watchdog_readonly-2863134-8.patch | 4.83 KB | janusman |
#7 | apachesolr-disable_watchdog_readonly-2863134-7.patch | 4.79 KB | janusman |
| |||
#4 | apachesolr-disable_watchdog_readonly-2863134-4.patch | 4.91 KB | KeyboardCowboy |
|
Comments
Comment #2
KeyboardCowboyAdding patch.
Comment #4
KeyboardCowboyRerolling patch with correct file paths.
Comment #5
KeyboardCowboyComment #6
Grayside CreditAttribution: Grayside at Phase2 commentedComment #7
janusman CreditAttribution: janusman at Acquia commentedPatch didn't apply anymore (surprise!) New, clean patch.
Comment #8
janusman CreditAttribution: janusman at Acquia commentedSo in our patches apachesolr_index_report_readonly() was outputting __FUNCTION__ which would always be .. itself instead of the caller :) New patch.
Comment #11
janusman CreditAttribution: janusman at Acquia commentedAlso committed small change to avoid linter error.
Fixed!