Skip to content

Classify SQL execution errors for logging #5690

Description

@JasonAtClockwork

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions