Skip to content

Commit

Permalink
Use the tracing crate instead of the log crate.
Browse files Browse the repository at this point in the history
This will allow us to handle the traces with logger_core.
  • Loading branch information
nihohit committed Sep 19, 2023
1 parent cc07fcf commit e31278a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions redis/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ serde_json = { version = "1.0.82", optional = true }
# Optional aHash support
ahash = { version = "0.7.6", optional = true }

log = { version = "0.4", optional = true }
tracing = "0.1"
futures-time = { version = "3.0.0", optional = true }

[features]
Expand All @@ -108,7 +108,7 @@ tokio-native-tls-comp = ["tokio-comp", "tls-native-tls", "tokio-native-tls"]
tokio-rustls-comp = ["tokio-comp", "tls-rustls", "tokio-rustls"]
connection-manager = ["arc-swap", "futures", "aio", "tokio-retry"]
streams = []
cluster-async = ["cluster", "futures", "futures-util", "log"]
cluster-async = ["cluster", "futures", "futures-util"]
keep-alive = ["socket2"]
sentinel = ["rand"]

Expand Down
2 changes: 1 addition & 1 deletion redis/src/cluster_async/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ use futures::{
ready, stream,
};
use futures_time::future::FutureExt;
use log::trace;
use pin_project_lite::pin_project;
use tokio::sync::{
mpsc,
oneshot::{self, Receiver},
RwLock,
};
use tracing::trace;

use self::connections_container::{ConnectionAndIdentifier, Identifier as ConnectionIdentifier};

Expand Down
2 changes: 1 addition & 1 deletion redis/src/cluster_topology.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ use crate::cluster_routing::SlotAddr;
use crate::cluster_routing::SlotAddrs;
use crate::{cluster::TlsMode, cluster_routing::Slot, ErrorKind, RedisError, RedisResult, Value};
use derivative::Derivative;
use log::trace;
use std::collections::hash_map::DefaultHasher;
use std::collections::BTreeMap;
use std::collections::HashMap;
use std::collections::HashSet;
use std::hash::{Hash, Hasher};
use std::time::Duration;
use tracing::trace;

/// The default number of refersh topology retries
pub const DEFAULT_NUMBER_OF_REFRESH_SLOTS_RETRIES: usize = 3;
Expand Down

0 comments on commit e31278a

Please sign in to comment.