Skip to content

Commit

Permalink
Add tracing statement
Browse files Browse the repository at this point in the history
  • Loading branch information
gferon committed Oct 21, 2024
1 parent 453e8da commit 076a1bb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/sender.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use libsignal_protocol::{
ProtocolStore, SenderCertificate, SenderKeyStore, SignalProtocolError,
};
use rand::{CryptoRng, Rng};
use tracing::{error, info, trace};
use tracing::{debug, error, info, trace};
use tracing_futures::Instrument;
use uuid::Uuid;
use zkgroup::GROUP_IDENTIFIER_LEN;
Expand Down Expand Up @@ -376,6 +376,7 @@ where

// only send a sync message when sending to self and skip the rest of the process
if message_to_self {
debug!("sending note to self");
let sync_message = create_sync_message(content_body, None);
return self
.try_send_message(
Expand Down Expand Up @@ -412,7 +413,7 @@ where
};

if needs_sync || self.is_multi_device().await {
tracing::debug!("sending multi-device sync message");
debug!("sending multi-device sync message");
let sync_message = create_sync_message(content_body, Some(&result));
self.try_send_message(
self.local_aci,
Expand Down

0 comments on commit 076a1bb

Please sign in to comment.