chore: update logs

This commit is contained in:
nathan 2024-05-01 22:05:04 +08:00
parent 885e6f31b4
commit ca1623fcc2
1 changed files with 5 additions and 1 deletions

View File

@ -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