Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

codewide: Log errors' contents to facilitate debugging #157

Open
wprzytula opened this issue Aug 7, 2024 · 0 comments
Open

codewide: Log errors' contents to facilitate debugging #157

wprzytula opened this issue Aug 7, 2024 · 0 comments
Assignees

Comments

@wprzytula
Copy link
Collaborator

wprzytula commented Aug 7, 2024

Rust driver strives to have quite insightful error messages. It nests errors so that when displayed as string, a path can be imagined that shows where exactly an error was encountered.
Cpp driver uses error codes to signal user what went wrong. In practice, that limits user's insight a lot.
To prevent large information loss upon transition Rust driver nested error -> Cpp-rust-driver error code, I suggest logging error messages using warn! or error!.

@wprzytula wprzytula changed the title Log errors' contents to facilitate debugging codewide: Log errors' contents to facilitate debugging Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants