From f429944ea2f3ef13031a146c5afd4e0079b24ebb Mon Sep 17 00:00:00 2001 From: Oliver Gould Date: Fri, 29 Oct 2021 16:08:51 +0000 Subject: [PATCH] Log discovery changes at DEBUG It seems that we no longer log specific discovery changes at DEBUG anywhere. We probably ought to revisit the discovery pipeline more holistically and ensure that we're logging in strategic places, but for now this will help users diagnose discovery updates without subscribing to the much noisier TRACE stream. Relates to linkerd/linkerd2#6842 --- linkerd/proxy/discover/src/from_resolve.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linkerd/proxy/discover/src/from_resolve.rs b/linkerd/proxy/discover/src/from_resolve.rs index 0245422c09..95f008e0ad 100644 --- a/linkerd/proxy/discover/src/from_resolve.rs +++ b/linkerd/proxy/discover/src/from_resolve.rs @@ -9,7 +9,7 @@ use std::{ task::{Context, Poll}, }; use tower::discover::Change; -use tracing::trace; +use tracing::{debug, trace}; #[derive(Clone, Debug)] pub struct FromResolve { @@ -106,7 +106,7 @@ where loop { let this = self.as_mut().project(); if let Some(change) = this.pending.pop_front() { - trace!(?change, "Changed"); + debug!(?change, "Changed"); return Poll::Ready(Some(Ok(change))); }