Skip to content

Commit

Permalink
change all log to tracing
Browse files Browse the repository at this point in the history
Signed-off-by: Ping Yu <[email protected]>
  • Loading branch information
pingyu committed Nov 3, 2023
1 parent 7892d75 commit 55887f4
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/common/security.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ use std::path::Path;
use std::path::PathBuf;
use std::time::Duration;

use log::info;
use regex::Regex;
use tonic::transport::Certificate;
use tonic::transport::Channel;
use tonic::transport::ClientTlsConfig;
use tonic::transport::Identity;
use tracing::info;

use crate::internal_err;
use crate::Result;
Expand Down
2 changes: 1 addition & 1 deletion src/pd/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ use std::sync::Arc;
use async_trait::async_trait;
use futures::prelude::*;
use futures::stream::BoxStream;
use log::info;
use tokio::sync::RwLock;
use tracing::info;

use crate::compat::stream_fn;
use crate::kv::codec;
Expand Down
6 changes: 3 additions & 3 deletions src/pd/cluster.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ use std::time::Duration;
use std::time::Instant;

use async_trait::async_trait;
use log::error;
use log::info;
use log::warn;
use tonic::transport::Channel;
use tonic::IntoRequest;
use tonic::Request;
use tracing::error;
use tracing::info;
use tracing::warn;

use super::timestamp::TimestampOracle;
use crate::internal_err;
Expand Down
2 changes: 1 addition & 1 deletion src/raw/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use std::sync::Arc;
use std::u32;

use futures::StreamExt;
use log::debug;
use tracing::debug;

use crate::backoff::DEFAULT_REGION_BACKOFF;
use crate::common::Error;
Expand Down
4 changes: 2 additions & 2 deletions src/transaction/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

use std::sync::Arc;

use log::debug;
use log::info;
use tracing::debug;
use tracing::info;

use crate::backoff::{DEFAULT_REGION_BACKOFF, DEFAULT_STORE_BACKOFF};
use crate::config::Config;
Expand Down
2 changes: 1 addition & 1 deletion src/transaction/snapshot.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Copyright 2019 TiKV Project Authors. Licensed under Apache-2.0.

use derive_new::new;
use log::debug;
use std::marker::PhantomData;
use tracing::debug;
use tracing::instrument;

use crate::codec::ApiV1TxnCodec;
Expand Down
4 changes: 2 additions & 2 deletions tests/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ use std::convert::TryInto;
use std::env;
use std::time::Duration;

use log::info;
use log::warn;
use rand::Rng;
use tikv_client::Key;
use tikv_client::RawClient;
Expand All @@ -17,6 +15,8 @@ use tikv_client::Transaction;
use tikv_client::TransactionClient;
use tikv_client::{ColumnFamily, Snapshot, TransactionOptions};
use tokio::time::sleep;
use tracing::info;
use tracing::warn;

const ENV_PD_ADDRS: &str = "PD_ADDRS";
const ENV_ENABLE_MULIT_REGION: &str = "MULTI_REGION";
Expand Down
2 changes: 1 addition & 1 deletion tests/failpoint_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ use std::time::Duration;

use common::*;
use fail::FailScenario;
use log::info;
use rand::thread_rng;
use serial_test::serial;
use tikv_client::transaction::Client;
Expand All @@ -21,6 +20,7 @@ use tikv_client::Result;
use tikv_client::RetryOptions;
use tikv_client::TransactionClient;
use tikv_client::TransactionOptions;
use tracing::info;

#[tokio::test]
#[serial]
Expand Down

0 comments on commit 55887f4

Please sign in to comment.