mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 22:11:38 +00:00
Update logging levels in Rojo plugin and enhance test plans
- Promoted sync-related logging from Debug/Trace to Info level across multiple files, ensuring visibility of changes in the Studio output console. - Added a new plan for expanding the connected mode test suite to cover multi-step scenarios and round-trip identity verification. - Introduced a plan to fix stale tree desynchronization by implementing a validation mechanism on plugin connection. - Created a plan to bump sync logging to Info level, detailing todos for various components in the plugin. This update improves the clarity of logs and enhances testing coverage for connected mode scenarios.
This commit is contained in:
parent
2cc1726975
commit
316d7ea70e
17 changed files with 2443 additions and 1553 deletions
|
|
@ -197,9 +197,8 @@ function ApiContext:write(patch)
|
|||
addedCount += 1
|
||||
end
|
||||
|
||||
-- Only log summary at debug level to reduce verbosity
|
||||
if #patch.removed > 0 or addedCount > 0 or #patch.updated > 0 then
|
||||
Log.debug(
|
||||
Log.info(
|
||||
"Sending to server: {} removals, {} additions, {} updates",
|
||||
#patch.removed,
|
||||
addedCount,
|
||||
|
|
@ -207,15 +206,14 @@ function ApiContext:write(patch)
|
|||
)
|
||||
end
|
||||
|
||||
-- Log individual operations at trace level (very detailed)
|
||||
for _, removed in ipairs(patch.removed) do
|
||||
Log.trace("[Syncback] Remove ID: {}", tostring(removed))
|
||||
Log.info("[Syncback] Remove ID: {}", tostring(removed))
|
||||
end
|
||||
|
||||
for _, addedInstance in pairs(patch.added) do
|
||||
local instanceName = addedInstance.name or addedInstance.Name or "unknown"
|
||||
local instanceClass = addedInstance.className or addedInstance.ClassName or "unknown"
|
||||
Log.trace("[Syncback] Add {} ({})", instanceName, instanceClass)
|
||||
Log.info("[Syncback] Add {} ({})", instanceName, instanceClass)
|
||||
end
|
||||
|
||||
for _, update in ipairs(patch.updated) do
|
||||
|
|
@ -225,7 +223,7 @@ function ApiContext:write(patch)
|
|||
propCount += 1
|
||||
end
|
||||
end
|
||||
Log.trace("[Syncback] Update ID {} ({} properties)", update.id, propCount)
|
||||
Log.info("[Syncback] Update ID {} ({} properties)", update.id, propCount)
|
||||
end
|
||||
|
||||
local updated = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue