Skip to content

Commit d1af88a

Browse files
committed
starknet_committer_cli,starknet_committer_and_os_cli: move tracing_utils
1 parent 3f68836 commit d1af88a

File tree

9 files changed

+8
-6
lines changed

9 files changed

+8
-6
lines changed

Cargo.lock

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/apollo_infra_utils/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ tempfile = { workspace = true, optional = true }
2424
thiserror.workspace = true
2525
tokio = { workspace = true, features = ["process", "rt", "time"] }
2626
tracing.workspace = true
27+
tracing-subscriber.workspace = true
2728

2829
[dev-dependencies]
2930
assert-json-diff.workspace = true

crates/apollo_infra_utils/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ pub mod template;
1010
#[cfg(any(feature = "testing", test))]
1111
pub mod test_utils;
1212
pub mod tracing;
13+
pub mod tracing_utils;
1314
pub mod type_name;
1415

1516
pub extern crate apollo_proc_macros as _apollo_proc_macros;
File renamed without changes.

crates/starknet_committer_and_os_cli/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ tempfile.workspace = true
1818

1919
# TODO(Amos): Add `testing` feature and move Python test dependencies under it.
2020
[dependencies]
21+
apollo_infra_utils.workspace = true
2122
# The 'test_programs' feature should be moved under `testing` feature, when it exists.
2223
apollo_starknet_os_program = { workspace = true, features = ["test_programs"] }
2324
blake2s.workspace = true

crates/starknet_committer_and_os_cli/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@ pub mod block_hash_cli;
22
pub mod committer_cli;
33
pub mod os_cli;
44
pub mod shared_utils;
5-
pub mod tracing_utils;

crates/starknet_committer_and_os_cli/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
use apollo_infra_utils::tracing_utils::configure_tracing;
12
use clap::{Args, Parser, Subcommand};
23
use starknet_committer_and_os_cli::block_hash_cli::run_block_hash_cli::{
34
run_block_hash_cli,
@@ -8,7 +9,6 @@ use starknet_committer_and_os_cli::committer_cli::run_committer_cli::{
89
CommitterCliCommand,
910
};
1011
use starknet_committer_and_os_cli::os_cli::run_os_cli::{run_os_cli, OsCliCommand};
11-
use starknet_committer_and_os_cli::tracing_utils::configure_tracing;
1212
use tracing::info;
1313

1414
/// Committer and OS CLI.

crates/starknet_committer_cli/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,11 @@ description = "CLI for the committer storage benchmark."
1010
workspace = true
1111

1212
[dependencies]
13+
apollo_infra_utils.workspace = true
1314
clap = { workspace = true, features = ["cargo", "derive"] }
1415
csv.workspace = true
1516
rand.workspace = true
1617
starknet_committer = { workspace = true, features = ["benchmark", "testing"] }
17-
# TODO(Tzahi): Remove once tracing is moved to a common location.
18-
starknet_committer_and_os_cli.workspace = true
1918
starknet_patricia.workspace = true
2019
starknet_patricia_storage.workspace = true
2120
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }

crates/starknet_committer_cli/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
use apollo_infra_utils::tracing_utils::{configure_tracing, modify_log_level};
12
use clap::{Args, Parser, Subcommand};
2-
use starknet_committer_and_os_cli::tracing_utils::{configure_tracing, modify_log_level};
33
use starknet_committer_cli::commands::run_storage_benchmark;
44
use tracing::info;
55
use tracing::level_filters::LevelFilter;

0 commit comments

Comments
 (0)