magnusmanske / petscan_rs

The repo for the PetScan tool
https://petscan.wmflabs.org/
GNU General Public License v3.0
44 stars 10 forks source link

Add tracing #153

Closed 1-Byte closed 8 months ago

1-Byte commented 9 months ago

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