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

[3.2] add more context to chainbase logging during loading and writing in heap or locked more #255

Merged
merged 2 commits into from
Sep 28, 2022

Conversation

spoonincode
Copy link
Member

Previously when chainbase was used in heap or locked mode (modes where it preloads the entire DB), log statements were printed as

CHAINBASE: Preloading "state" database file, this could take a moment...
               1% complete...
               10% complete...

The lack of context on the progress logs was noted as a problem in eosnetworkfoundation/mandel#318

Now, add more context to the logs so they look like

CHAINBASE: Preloading "state" database file, this could take a moment...
CHAINBASE: Preloading "state" database file, 10% complete...
CHAINBASE: Preloading "state" database file, 90% complete...
CHAINBASE: Preloading "state" database file, complete.

Needs AntelopeIO/chainbase#2

@spoonincode spoonincode merged commit 24b23ab into main Sep 28, 2022
@spoonincode spoonincode deleted the more_db_load_write_log_context branch September 28, 2022 22:44
heifner added a commit that referenced this pull request Dec 2, 2022
…mand. Also greatly simplified the fork python script.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants