From ca1623fcc290f45ba9648a5e35751799c1c93ff2 Mon Sep 17 00:00:00 2001 From: nathan Date: Wed, 1 May 2024 22:05:04 +0800 Subject: [PATCH] chore: update logs --- services/appflowy-collaborate/src/group/protocol.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/services/appflowy-collaborate/src/group/protocol.rs b/services/appflowy-collaborate/src/group/protocol.rs index 3cc33bce..73fa4763 100644 --- a/services/appflowy-collaborate/src/group/protocol.rs +++ b/services/appflowy-collaborate/src/group/protocol.rs @@ -51,7 +51,11 @@ impl CollabSyncProtocol for ServerSyncProtocol { RTProtocolError::YrsTransaction(format!("sync step2 transaction acquire: {}", err)) })?; txn.try_apply_update(update).map_err(|err| { - RTProtocolError::YrsApplyUpdate(format!("sync step2 apply update: {}", err)) + RTProtocolError::YrsApplyUpdate(format!( + "sync step2 apply update: {}\ndocument state: {:#?}", + err, + txn.store() + )) })?; // If server can't apply updates sent by client, which means the server is missing some updates