From cdc147cd330ebb69bd29f7265875e98effa60834 Mon Sep 17 00:00:00 2001 From: William Grant Date: Wed, 12 Jun 2024 14:33:08 +1000 Subject: [PATCH] fix: clean wip logs --- ts/session/apis/snode_api/swarmPolling.ts | 4 ++-- ts/util/saveBWQRCode.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ts/session/apis/snode_api/swarmPolling.ts b/ts/session/apis/snode_api/swarmPolling.ts index 58de4af3e..93309a6f3 100644 --- a/ts/session/apis/snode_api/swarmPolling.ts +++ b/ts/session/apis/snode_api/swarmPolling.ts @@ -708,7 +708,7 @@ export class SwarmPolling { // Note: always print something so we know if the polling is hanging window.log.info( - `WIP: [onboarding] about to pollOnceForOurDisplayName of ${ed25519Str(pubkey.key)} from snode: ${ed25519Str(toPollFrom.pubkey_ed25519)} namespaces: ${[SnodeNamespaces.UserProfile]} ` + `[onboarding] about to pollOnceForOurDisplayName of ${ed25519Str(pubkey.key)} from snode: ${ed25519Str(toPollFrom.pubkey_ed25519)} namespaces: ${[SnodeNamespaces.UserProfile]} ` ); const resultsFromUserProfile = await SnodeAPIRetrieve.retrieveNextMessages( @@ -722,7 +722,7 @@ export class SwarmPolling { // Note: always print something so we know if the polling is hanging window.log.info( - `WIP: [onboarding] pollOnceForOurDisplayName of ${ed25519Str(pubkey.key)} from snode: ${ed25519Str(toPollFrom.pubkey_ed25519)} namespaces: ${[SnodeNamespaces.UserProfile]} returned: ${resultsFromUserProfile?.length}` + `[onboarding] pollOnceForOurDisplayName of ${ed25519Str(pubkey.key)} from snode: ${ed25519Str(toPollFrom.pubkey_ed25519)} namespaces: ${[SnodeNamespaces.UserProfile]} returned: ${resultsFromUserProfile?.length}` ); // check if we just fetched the details from the config namespaces. diff --git a/ts/util/saveBWQRCode.tsx b/ts/util/saveBWQRCode.tsx index c7bf5c250..135c6f115 100644 --- a/ts/util/saveBWQRCode.tsx +++ b/ts/util/saveBWQRCode.tsx @@ -49,6 +49,6 @@ export async function saveBWQRCode(filename: string, props: SessionQRCodeProps): reactRoot?.unmount(); root?.removeChild(divElement); } catch (err) { - window.log.error('WIP: [saveBWQRCode] failed', err); + window.log.error(`[saveBWQRCode] failed for ${filename}`, err); } }