mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 22:11:38 +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
|
|
@ -173,6 +173,11 @@ encodeInstance = function(instance, parentId, _skipPathCheck)
|
|||
return nil
|
||||
end
|
||||
|
||||
-- Log encoding at trace level (very detailed)
|
||||
if not _skipPathCheck then
|
||||
Log.trace("Encoding for syncback: {} ({})", instance:GetFullName(), instance.ClassName)
|
||||
end
|
||||
|
||||
local properties = {}
|
||||
|
||||
-- Always try to encode Attributes and Tags for any instance type
|
||||
|
|
@ -262,6 +267,18 @@ encodeInstance = function(instance, parentId, _skipPathCheck)
|
|||
end
|
||||
end
|
||||
|
||||
-- Log property count for debugging
|
||||
local propCount = 0
|
||||
for _ in pairs(properties) do
|
||||
propCount += 1
|
||||
end
|
||||
Log.trace(
|
||||
" Encoded {} with {} properties, {} children",
|
||||
instance.Name,
|
||||
propCount,
|
||||
#children
|
||||
)
|
||||
|
||||
return {
|
||||
parent = parentId,
|
||||
name = instance.Name,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue