Skip to content

Commit

Permalink
Missing source in ClusterManager logger. (#219)
Browse files Browse the repository at this point in the history
Just a small cleanup I saw when reviewing logging.
  • Loading branch information
markmandel authored Mar 22, 2021
1 parent 450e496 commit 3c99ddf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/xds/cluster.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ use crate::xds::ads_client::send_discovery_req;
use crate::xds::error::Error;
use bytes::Bytes;
use prost::Message;
use slog::{debug, warn, Logger};
use slog::{debug, o, warn, Logger};
use std::collections::{HashMap, HashSet};
use std::net::SocketAddr;
use tokio::sync::mpsc;
Expand Down Expand Up @@ -61,12 +61,12 @@ impl ClusterManager {
/// ACKs/NACKs are sent on the provided channel to be forwarded to the XDS
/// server.
pub(in crate::xds) fn new(
log: Logger,
base: Logger,
cluster_updates_tx: mpsc::Sender<HashMap<String, ProxyCluster>>,
discovery_req_tx: mpsc::Sender<DiscoveryRequest>,
) -> Self {
ClusterManager {
log,
log: base.new(o!("source" => "xds::ClusterManager")),
discovery_req_tx,
cluster_updates_tx,
clusters: HashMap::new(),
Expand Down

0 comments on commit 3c99ddf

Please sign in to comment.