File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7474# Step 3: Check watchdog for Solr errors
7575echo " --- Step 3: Check watchdog for Solr errors ---"
7676
77- ERRORS=$( terminus drush " $SITE_ENV " -- watchdog-show " --type=Apache Solr" --count=10 2>&1 ) || true
77+ if [ " $MODULE " = " apachesolr" ]; then
78+ WD_TYPE=" Apache Solr"
79+ else
80+ WD_TYPE=" search_api_solr"
81+ fi
82+
83+ ERRORS=$( terminus drush " $SITE_ENV " -- watchdog-show " --type=$WD_TYPE " --count=10 2>&1 ) || true
7884
7985if echo " $ERRORS " | grep -qiE " Unrecognized message type\|No log messages" ; then
80- echo " No Solr log entries in watchdog."
81- elif echo " $ERRORS " | grep -qi " error" ; then
82- echo " ::warning::Solr entries found in watchdog:"
83- echo " $ERRORS "
86+ echo " No Solr log entries in watchdog (type '$WD_TYPE ' not present)."
8487else
85- echo " No Solr errors in watchdog."
88+ # Filter out drush meta lines, check for actual error entries
89+ REAL_ERRORS=$( echo " $ERRORS " | grep -i " error" | grep -vi " Unrecognized message type\|Exit:\|Command:" || true)
90+ if [ -n " $REAL_ERRORS " ]; then
91+ echo " ::warning::Solr errors found in watchdog:"
92+ echo " $REAL_ERRORS "
93+ else
94+ echo " No Solr errors in watchdog."
95+ fi
8696fi
8797
8898# Step 4: Verify Solr ping is healthy
You can’t perform that action at this time.
0 commit comments