mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 05:51:39 +00:00
Enhance logging for syncback operations and patch applications
- Added detailed logging for syncback operations, including additions, removals, and updates, to improve traceability and debugging. - Implemented summary logs for patch applications in both the client and server, capturing the number of changes made. - Enhanced logging in the ChangeBatcher and ApiService to provide insights into property changes and instance updates during syncback processes. - Improved error handling and logging for VFS events to ensure better visibility of file operations.
This commit is contained in:
parent
d3d914e660
commit
6dc8f219bd
7 changed files with 242 additions and 6 deletions
|
|
@ -264,6 +264,29 @@ impl ApiService {
|
|||
}
|
||||
}
|
||||
|
||||
// Log property updates being synced back
|
||||
for update in &request.updated {
|
||||
let prop_names: Vec<&str> = update
|
||||
.changed_properties
|
||||
.keys()
|
||||
.map(|k| k.as_str())
|
||||
.collect();
|
||||
if !prop_names.is_empty() {
|
||||
log::info!(
|
||||
"Syncback: Updating properties for instance {:?}: {}",
|
||||
update.id,
|
||||
prop_names.join(", ")
|
||||
);
|
||||
}
|
||||
if update.changed_name.is_some() {
|
||||
log::info!(
|
||||
"Syncback: Renaming instance {:?} to {:?}",
|
||||
update.id,
|
||||
update.changed_name
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
let updated_instances = request
|
||||
.updated
|
||||
.into_iter()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue