Skip to content

Commit

Permalink
fix: make tracing imports explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
huitseeker committed Apr 15, 2022
1 parent 53ebbdc commit e265b9b
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion network_utils/src/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use std::{
sync::atomic::{AtomicUsize, Ordering},
};
use sui_types::{error::*, serialize::*};
use tracing::*;
use tracing::debug;

use std::io;

Expand Down
2 changes: 1 addition & 1 deletion network_utils/src/transport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down
1 change: 1 addition & 0 deletions network_utils/src/unit_tests/transport_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use std::{
time::Duration,
};
use tokio::{runtime::Runtime, time::timeout};
use tracing::error;

async fn get_new_local_address() -> Result<String, std::io::Error> {
let builder = net2::TcpBuilder::new_v4()?;
Expand Down
2 changes: 1 addition & 1 deletion sui/src/benchmark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion sui/src/benchmark/load_generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<SerializedMessage, Error>) {
match reply_message {
Expand Down
2 changes: 1 addition & 1 deletion sui/src/benchmark/transaction_creator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 2 additions & 1 deletion sui_core/src/authority.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
2 changes: 1 addition & 1 deletion sui_core/src/authority_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down

0 comments on commit e265b9b

Please sign in to comment.