Follow-up from #5640.
Host::exec_sql in crates/client-api/src/lib.src currently receives a broad DBError containing both client SQL errors and internal datastore, transaction, or durability failures, so all failures are logged at warn! as a default.
Audit the errors returned by sql::execute::run and preserve enough classification to log clear internal failures at error!, while keeping client SQL errors at warn! or lower.
Follow-up from #5640.
Host::exec_sqlincrates/client-api/src/lib.srccurrently receives a broadDBErrorcontaining both client SQL errors and internal datastore, transaction, or durability failures, so all failures are logged atwarn!as a default.Audit the errors returned by
sql::execute::runand preserve enough classification to log clear internal failures aterror!, while keeping client SQL errors atwarn!or lower.