Skip to content

Add more suspension logs#149

Open
supersuryaansh wants to merge 4 commits into
mainfrom
more_suspension_logs
Open

Add more suspension logs#149
supersuryaansh wants to merge 4 commits into
mainfrom
more_suspension_logs

Conversation

@supersuryaansh

Copy link
Copy Markdown
Member

No description provided.

@supersuryaansh supersuryaansh requested a review from a team June 19, 2026 09:26
@marcus-pousette-hp marcus-pousette-hp self-requested a review June 24, 2026 11:12
Comment thread index.js Outdated

async suspend({ log = noop } = {}) {
await log('Flushing db...')
await log('Corestore suspension started...')

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

nit:

if we return quickly if !shouldSuspend is true, then suspension did not really start.

Also is Corestore prefix needed here?.

I would argue

"
Suspension requested...
"

is a better first log

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Fixed the rest, nice to have the corestore prefix as we have this suspension happening in a lot of places in the stack

Comment thread index.js Outdated
await log('Corestore suspension started...')
// If readOnly we don't need to flush
if (!this.storage.readOnly) {
await log('Flusing db...')

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

typo Flusing -> Flushing

Comment thread index.js Outdated
if (!this.storage.readOnly) {
await log('Flusing db...')
await this.storage.db.flush()
await log('Flusing db completed')

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Same typo

mafintosh
mafintosh previously approved these changes Jun 25, 2026
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.

3 participants