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.
Scenario: watchdog logs contain errors/messages like these:
HTTP Status: 0; Message: Request failed: Connection refused; Response: ; Request: Unknown; Caller: ...
HTTP 0; Request failed: Connection refused in apachesolr_cron
No Solr instance available during indexing.
... and many more.
However, we have several environments; which one failed?
My proposal should add a reference to the environment, or the Solr URL (or both?) that would tell us exactly what environment was being invoked.
Comment | File | Size | Author |
---|---|---|---|
#5 | watchdog_logging_should-2609204-5.patch | 22.85 KB | janusman |
Comments
Comment #2
jgrubb CreditAttribution: jgrubb as a volunteer commentedIn apachesolr_cron, try changing this --
to this --
If that works, try submitting a patch back.
Comment #3
jgrubb CreditAttribution: jgrubb as a volunteer commentedComment #4
jgrubb CreditAttribution: jgrubb as a volunteer commentedComment #5
janusman CreditAttribution: janusman at Acquia commentedHere's a patch!
Examples:
As a side note, I did find that some functions do not care about environments and are just assuming the default environment. I tagged those with a comment (I can remove that to clean up the patch).
Comment #7
janusman CreditAttribution: janusman at Acquia commentedFixed!