Skip to content

Commit 58900c9

Browse files
committed
style(ct,solr): improve error logging for schema fallback logic #11959
Enhanced error and info log messages in schema fallback handling to include specific file paths for better clarity during troubleshooting.
1 parent 6a6f939 commit 58900c9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

conf/solr/solr-driver.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -585,10 +585,10 @@ apply_field_definitions() {
585585
log_info "Using source schema as base: ${SCHEMA_SOURCE_PATH}"
586586
cp "${SCHEMA_SOURCE_PATH}" "${temp_schema}"
587587
elif [[ -f "${target_schema}" ]]; then
588-
log_info "Source schema not found, using target schema as base: ${target_schema}"
588+
log_info "Source schema not found at '$SCHEMA_SOURCE_PATH', using target schema as base: ${target_schema}"
589589
cp "${target_schema}" "${temp_schema}"
590590
else
591-
log_error "No base schema file found (neither source nor target exist)"
591+
log_error "No base schema file found (neither source '$SCHEMA_SOURCE_PATH' nor target '$target_schema' exist)"
592592
return 1
593593
fi
594594

0 commit comments

Comments
 (0)