Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: tweak state-sync logging #7468

Merged
merged 3 commits into from
Apr 22, 2023
Merged

feat: tweak state-sync logging #7468

merged 3 commits into from
Apr 22, 2023

Conversation

mhofman
Copy link
Member

@mhofman mhofman commented Apr 20, 2023

refs: #7225

Description

After getting devnet traces, I realized that the restore process could use a few more details.
I also figured out why the snapshot process was unexpectedly verbose.

Security Considerations

None

Scaling Considerations

None

Documentation Considerations

None

Testing Considerations

Verified output manually

Do not default to printing out export steps
Add logging to restore process
@mhofman mhofman requested a review from gibson042 April 20, 2023 20:51
Comment on lines +541 to +544
console.info(
'Initiating SwingSet state snapshot at block height',
blockHeight,
);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, should this precede the tmpdir creation?

@@ -274,7 +274,7 @@ export const main = async (
{
fs,
pathResolve,
log: verbose ? console.log : undefined,
log: verbose ? console.log : null,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that'd do it!

@mhofman mhofman added the automerge:squash Automatically squash merge label Apr 21, 2023
@mergify mergify bot merged commit 9ec9ce2 into master Apr 22, 2023
@mergify mergify bot deleted the mhofman/state-sync-logging branch April 22, 2023 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge:squash Automatically squash merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants