Skip to content

Add a mode to the Rust SDK with additional logging to a file#4566

Open
gefjon wants to merge 3 commits intomasterfrom
phoebe/rust-sdk-additional-debugging-output
Open

Add a mode to the Rust SDK with additional logging to a file#4566
gefjon wants to merge 3 commits intomasterfrom
phoebe/rust-sdk-additional-debugging-output

Conversation

@gefjon
Copy link
Contributor

@gefjon gefjon commented Mar 5, 2026

Description of Changes

In the Rust client SDK, with this PR, doing .with_debug_to_file("path.txt") on the connection builder will result in the SDK logging additional verbose info to path.txt.

API and ABI breaking changes

Adds a new user-facing-ish API to the Rust client SDK.

Expected complexity level and risk

2? Some possibility of deadlock due to adding a new mutex, but this is explicitly not for production use.

Testing

  • Ran chat-console-rs locally with this enabled and got some debug logs out of it.

gefjon added 2 commits March 5, 2026 14:38
In the Rust client SDK, with this PR,
doing `.with_debug_to_file("path.txt")` on the connection builder
will result in the SDK logging additional verbose info to `path.txt`.
And dump the whole contents of the table, for good measure.
@gefjon gefjon requested a review from jsdt March 5, 2026 19:55
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

Successfully merging this pull request may close these issues.

2 participants