diff --git a/network_utils/src/network.rs b/network_utils/src/network.rs index 335221ebe2a9d..a0176513226bf 100644 --- a/network_utils/src/network.rs +++ b/network_utils/src/network.rs @@ -9,7 +9,7 @@ use std::{ sync::atomic::{AtomicUsize, Ordering}, }; use sui_types::{error::*, serialize::*}; -use tracing::*; +use tracing::debug; use std::io; diff --git a/network_utils/src/transport.rs b/network_utils/src/transport.rs index 0e75a26b53863..566748f2faac8 100644 --- a/network_utils/src/transport.rs +++ b/network_utils/src/transport.rs @@ -11,7 +11,7 @@ use tokio::net::{TcpListener, TcpStream}; use async_trait::async_trait; -use tracing::*; +use tracing::info; use bytes::{Bytes, BytesMut}; use tokio_util::codec::{FramedRead, FramedWrite, LengthDelimitedCodec}; diff --git a/network_utils/src/unit_tests/transport_tests.rs b/network_utils/src/unit_tests/transport_tests.rs index 354d69020de25..19b6cbaf224bc 100644 --- a/network_utils/src/unit_tests/transport_tests.rs +++ b/network_utils/src/unit_tests/transport_tests.rs @@ -8,6 +8,7 @@ use std::{ time::Duration, }; use tokio::{runtime::Runtime, time::timeout}; +use tracing::error; async fn get_new_local_address() -> Result { let builder = net2::TcpBuilder::new_v4()?; diff --git a/sui/src/benchmark.rs b/sui/src/benchmark.rs index 6d476ae059319..887a2bf6236fa 100644 --- a/sui/src/benchmark.rs +++ b/sui/src/benchmark.rs @@ -13,7 +13,7 @@ use sui_types::batch::UpdateItem; use sui_types::messages::{BatchInfoRequest, BatchInfoResponseItem}; use sui_types::serialize::*; use tokio::runtime::{Builder, Runtime}; -use tracing::*; +use tracing::{error, info}; pub mod bench_types; pub mod load_generator; diff --git a/sui/src/benchmark/load_generator.rs b/sui/src/benchmark/load_generator.rs index bfb58777ab6a9..3b37d9b6c275b 100644 --- a/sui/src/benchmark/load_generator.rs +++ b/sui/src/benchmark/load_generator.rs @@ -20,7 +20,7 @@ use sui_network::transport; use sui_types::{messages::*, serialize::*}; use tokio::sync::Notify; use tokio::time; -use tracing::*; +use tracing::{error, info}; pub fn check_transaction_response(reply_message: Result) { match reply_message { diff --git a/sui/src/benchmark/transaction_creator.rs b/sui/src/benchmark/transaction_creator.rs index f716921bb101f..2cb61886033ff 100644 --- a/sui/src/benchmark/transaction_creator.rs +++ b/sui/src/benchmark/transaction_creator.rs @@ -14,7 +14,7 @@ use sui_types::SUI_FRAMEWORK_ADDRESS; use sui_types::{base_types::*, committee::*, messages::*, object::Object, serialize::*}; use tokio::runtime::Runtime; -use tracing::*; +use tracing::info; use rocksdb::Options; use std::env; diff --git a/sui_core/src/authority.rs b/sui_core/src/authority.rs index 707504c16ffc8..0040444a99361 100644 --- a/sui_core/src/authority.rs +++ b/sui_core/src/authority.rs @@ -33,7 +33,8 @@ use sui_types::{ storage::{BackingPackageStore, DeleteKind, Storage}, MOVE_STDLIB_ADDRESS, SUI_FRAMEWORK_ADDRESS, }; -use tracing::*; +use tracing::log; +use tracing::{debug, instrument}; #[cfg(test)] #[path = "unit_tests/authority_tests.rs"] diff --git a/sui_core/src/authority_server.rs b/sui_core/src/authority_server.rs index 75a307c8a3f88..12a8a41fa5f3d 100644 --- a/sui_core/src/authority_server.rs +++ b/sui_core/src/authority_server.rs @@ -17,7 +17,7 @@ use sui_types::{ use futures::{SinkExt, StreamExt}; use std::time::Duration; -use tracing::*; +use tracing::{error, info, warn, Instrument}; use async_trait::async_trait; use bytes::{Bytes, BytesMut};