Implement better fmt::Debug for pdu::Builder.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk
2025-10-02 04:38:20 +00:00
parent 049defe977
commit eda45e445c
2 changed files with 45 additions and 12 deletions

View File

@@ -23,7 +23,12 @@ use super::RoomMutexGuard;
/// takes a roomid_mutex_state, meaning that only this function is able to
/// mutate the room state.
#[implement(super::Service)]
#[tracing::instrument(skip(self, state_lock), level = "debug", ret)]
#[tracing::instrument(
name = "build_and_append"
level = "debug",
skip(self, state_lock),
ret,
)]
pub async fn build_and_append_pdu(
&self,
pdu_builder: PduBuilder,