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

Add tracing #153

Merged
merged 1 commit into from
Jan 19, 2024
Merged

Add tracing #153

merged 1 commit into from
Jan 19, 2024

Conversation

1-Byte
Copy link
Contributor

@1-Byte 1-Byte commented Jan 6, 2024

To simplify debugging, we could use the tracing crate, a structured logging and diagnostics system. As an example, I instrumented some calls to illustrate its usage. Some of the dependencies will emit events as well.

RUST_LOG='info,petscan_rs=TRACE' cargo run
tracing

@magnusmanske magnusmanske merged commit ba07c17 into magnusmanske:master Jan 19, 2024
1 check passed
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