Skip to content

Commit aeb37f2

Browse files
proptest-stateful: add tracing
Use tracing instead of println! Change-Id: I566c53c8d11e5442bad4d5deb50eea5adbb0bca0 Reviewed-on: https://gerrit.readyset.name/c/readyset/+/10519 Tested-by: Buildkite CI Reviewed-by: Michael Zink <michael.z@readyset.io>
1 parent 2be1aee commit aeb37f2

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

proptest-stateful/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ async-trait = "0.1"
2121
proptest = "1.7.0"
2222
rand = "0.9.1"
2323
tokio = { version = "1.37", features = ["full"] }
24+
tracing = { workspace = true, features = ["release_max_level_debug"] }
2425

2526
[lints]
2627
workspace = true

proptest-stateful/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ use proptest::prelude::*;
2626
use proptest::strategy::{NewTree, ValueTree};
2727
use proptest::test_runner::TestRunner;
2828
use rand::distr::{Distribution, Uniform};
29+
use tracing::info;
2930

3031
/// Used by the caller of [`test()`] for providing config options.
3132
pub struct ProptestStatefulConfig {
@@ -334,7 +335,7 @@ where
334335
let mut ctxt = runtime_state.init_test_run().await;
335336

336337
for (idx, op) in steps.iter().enumerate() {
337-
println!("Running op {idx}: {op:?}");
338+
info!("Running op {idx}: {op:?}");
338339
runtime_state.run_op(op, &mut ctxt).await;
339340

340341
// Note that if we were verifying results of any operations directly, it would be better to

0 commit comments

Comments
 (0)