mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 05:51:39 +00:00
syncback
This commit is contained in:
parent
5f91a0777a
commit
3e6a50ce4b
5 changed files with 7 additions and 22 deletions
|
|
@ -182,7 +182,7 @@ function ApiContext:write(patch)
|
|||
for _ in pairs(patch.added) do
|
||||
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(
|
||||
|
|
|
|||
|
|
@ -124,9 +124,9 @@ function NotConnectedPage:render()
|
|||
}),
|
||||
}),
|
||||
|
||||
Connect = e(TextButton, {
|
||||
text = "Sync",
|
||||
style = "Solid",
|
||||
Connect = e(TextButton, {
|
||||
text = "Sync",
|
||||
style = "Solid",
|
||||
transparency = self.props.transparency,
|
||||
layoutOrder = 2,
|
||||
onClick = self.props.onConnect,
|
||||
|
|
|
|||
|
|
@ -272,12 +272,7 @@ encodeInstance = function(instance, parentId, _skipPathCheck)
|
|||
for _ in pairs(properties) do
|
||||
propCount += 1
|
||||
end
|
||||
Log.trace(
|
||||
" Encoded {} with {} properties, {} children",
|
||||
instance.Name,
|
||||
propCount,
|
||||
#children
|
||||
)
|
||||
Log.trace(" Encoded {} with {} properties, {} children", instance.Name, propCount, #children)
|
||||
|
||||
return {
|
||||
parent = parentId,
|
||||
|
|
|
|||
|
|
@ -112,12 +112,7 @@ function ChangeBatcher:__flush()
|
|||
for _ in pairs(patch.added) do
|
||||
addedCount += 1
|
||||
end
|
||||
Log.debug(
|
||||
"Two-way sync: {} updates, {} additions, {} removals",
|
||||
#patch.updated,
|
||||
addedCount,
|
||||
#patch.removed
|
||||
)
|
||||
Log.debug("Two-way sync: {} updates, {} additions, {} removals", #patch.updated, addedCount, #patch.removed)
|
||||
|
||||
return patch
|
||||
end
|
||||
|
|
|
|||
|
|
@ -680,12 +680,7 @@ function ServeSession:__confirmAndApplyInitialPatch(catchUpPatch, serverInfo)
|
|||
ignoreCount += 1
|
||||
end
|
||||
end
|
||||
Log.debug(
|
||||
"User selections: {} push, {} pull, {} ignored",
|
||||
pushCount,
|
||||
pullCount,
|
||||
ignoreCount
|
||||
)
|
||||
Log.debug("User selections: {} push, {} pull, {} ignored", pushCount, pullCount, ignoreCount)
|
||||
|
||||
-- Build partial patches based on selections
|
||||
local pushPatch = PatchSet.newEmpty() -- Items to apply to Studio
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue