From 6df7f976db2df7201cfd1d753cceef2be2f87c5b Mon Sep 17 00:00:00 2001 From: strawberry Date: Wed, 13 Mar 2024 11:36:42 -0400 Subject: [PATCH] log sync sender_user Signed-off-by: strawberry --- src/api/client_server/sync.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/api/client_server/sync.rs b/src/api/client_server/sync.rs index c8bc61c0..681b175d 100644 --- a/src/api/client_server/sync.rs +++ b/src/api/client_server/sync.rs @@ -28,7 +28,7 @@ use ruma::{ uint, DeviceId, OwnedDeviceId, OwnedUserId, RoomId, UInt, UserId, }; use tokio::sync::watch::Sender; -use tracing::error; +use tracing::{error, info}; use crate::{service::rooms::timeline::PduCount, services, Error, PduEvent, Result, Ruma, RumaResponse}; @@ -98,6 +98,8 @@ pub async fn sync_events_route( o.insert((body.since.clone(), rx.clone())); + info!("Sync started for {sender_user}"); + tokio::spawn(sync_helper_wrapper(sender_user.clone(), sender_device.clone(), body, tx)); rx