From a7b26f8753d1552a38287b0582c5e9ccb9c981d2 Mon Sep 17 00:00:00 2001 From: Alex Koshelev Date: Thu, 26 Sep 2024 13:13:30 -0700 Subject: [PATCH] Print send config in tracing It was proven useful in several investigations, so we should just enable it --- ipa-core/src/helpers/gateway/send.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ipa-core/src/helpers/gateway/send.rs b/ipa-core/src/helpers/gateway/send.rs index fc73caf5d..07018fb14 100644 --- a/ipa-core/src/helpers/gateway/send.rs +++ b/ipa-core/src/helpers/gateway/send.rs @@ -203,10 +203,9 @@ impl GatewaySenders { match self.inner.entry(channel_id.clone()) { Entry::Occupied(entry) => Arc::clone(entry.get()), Entry::Vacant(entry) => { - let sender = Self::new_sender( - &SendChannelConfig::new::(config, total_records), - channel_id.clone(), - ); + let config = SendChannelConfig::new::(config, total_records); + tracing::trace!("send configuration for {channel_id:?}: {config:?}"); + let sender = Self::new_sender(&config, channel_id.clone()); entry.insert(Arc::clone(&sender)); tokio::spawn({