-
-
Notifications
You must be signed in to change notification settings - Fork 279
chore: add performance logs #8646
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
base: main
Are you sure you want to change the base?
Changes from all commits
3fe3278
25f0298
e0eba6d
c3dc0c9
26217fc
a89313e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -38,6 +38,10 @@ export const createMultichainAccountGroupsBatch = async ( | |
| profileId: ProfileId, | ||
| analyticsAction: BackupAndSyncAnalyticsAction, | ||
| ): Promise<void> => { | ||
| console.log(`[PERFORMANCE DEBUG] createMultichainAccountGroupsBatch - Creating ${maxGroupIndex + 1} account groups (batch) for entropy source: ${entropySourceId}`); | ||
| console.log(`[PERFORMANCE DEBUG] createMultichainAccountGroupsBatch - Max group index: ${maxGroupIndex}`); | ||
| console.log(`[PERFORMANCE DEBUG] createMultichainAccountGroupsBatch - Context: ${JSON.stringify(context)}`); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Debug console.log statements committed to production codeMedium Severity Multiple Additional Locations (2)Reviewed by Cursor Bugbot for commit a89313e. Configure here. |
||
|
|
||
| const numberOfAccountGroupsToCreate = maxGroupIndex + 1; // maxGroupIndex is zero-based, so we add 1 to get the count. | ||
| backupAndSyncLogger( | ||
| `Creating ${numberOfAccountGroupsToCreate} account groups (batch) for entropy source: ${entropySourceId}`, | ||
|
|
||


There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JSON.stringify(context)will throw on circular referencesHigh Severity
JSON.stringify(context)will throw aTypeError: Converting circular structure to JSONbecauseBackupAndSyncContextcontainscontroller: this(the fullAccountTreeControllerinstance) andmessenger(a complex event system), which almost certainly have circular references. This unhandled error will crashcreateMultichainAccountGroupsBatchbefore any account groups are created.Reviewed by Cursor Bugbot for commit a89313e. Configure here.