Skip to content

Commit

Permalink
Print send config in tracing
Browse files Browse the repository at this point in the history
It was proven useful in several investigations, so we should just enable it
  • Loading branch information
akoshelev committed Sep 26, 2024
1 parent 4429326 commit a7b26f8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ipa-core/src/helpers/gateway/send.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,9 @@ impl<I: TransportIdentity> GatewaySenders<I> {
match self.inner.entry(channel_id.clone()) {
Entry::Occupied(entry) => Arc::clone(entry.get()),
Entry::Vacant(entry) => {
let sender = Self::new_sender(
&SendChannelConfig::new::<M>(config, total_records),
channel_id.clone(),
);
let config = SendChannelConfig::new::<M>(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({
Expand Down

0 comments on commit a7b26f8

Please sign in to comment.