Skip to content

Commit

Permalink
add logging for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronvoell committed Jan 15, 2025
1 parent 63609c5 commit f7df575
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xmtp_mls/src/groups/mls_sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,9 @@ where
let message_id =
calculate_message_id(&self.group_id, &content, &idempotency_key);
let queryable_content_fields = Self::extract_queryable_content_fields(&content);
tracing::info!("External msg - QueryableContentFields - content type extracted: {:?}", queryable_content_fields.content_type);
tracing::info!("External msg - QueryableContentFields - content version extracted: {:?}", queryable_content_fields.version_major);
tracing::info!("External msg - QueryableContentFields - reference id extracted: {:?}", queryable_content_fields.reference_id);
StoredGroupMessage {
id: message_id,
group_id: self.group_id.clone(),
Expand Down
3 changes: 3 additions & 0 deletions xmtp_mls/src/groups/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -827,6 +827,9 @@ impl<ScopedClient: ScopedGroupClient> MlsGroup<ScopedClient> {
// store this unpublished message locally before sending
let message_id = calculate_message_id(&self.group_id, message, &now.to_string());
let queryable_content_fields = Self::extract_queryable_content_fields(message);
tracing::info!("Prepare msg - QueryableContentFields - content type extracted: {:?}", queryable_content_fields.content_type);
tracing::info!("Prepare msg - QueryableContentFields - content version extracted: {:?}", queryable_content_fields.version_major);
tracing::info!("Prepare msg - QueryableContentFields - reference id extracted: {:?}", queryable_content_fields.reference_id);
let group_message = StoredGroupMessage {
id: message_id.clone(),
group_id: self.group_id.clone(),
Expand Down

0 comments on commit f7df575

Please sign in to comment.