diff --git a/src/global/StorageBroadcast.tsx b/src/global/StorageBroadcast.tsx index d20fe53..7f6acf4 100644 --- a/src/global/StorageBroadcast.tsx +++ b/src/global/StorageBroadcast.tsx @@ -44,7 +44,7 @@ // Load the wallet from localStorage (the update should've been // synchronous) const wallet = parseWallet(id, localStorage.getItem(key)); - debug("%s broadcast %s: %o", type, id, wallet); + debug("%s broadcast %s", type, id); // Dispatch the new/updated wallet to the Redux store if (type === "addWallet") store.dispatch(actions.addWallet(wallet)); diff --git a/src/krist/wallets/walletStorage.ts b/src/krist/wallets/walletStorage.ts index 104208b..e1ea821 100644 --- a/src/krist/wallets/walletStorage.ts +++ b/src/krist/wallets/walletStorage.ts @@ -72,7 +72,7 @@ if (wallet.dontSave) return; const key = getWalletKey(wallet); - debug("saving wallet key %s with data %o", key, wallet); + debug("saving wallet key %s", key); const serialised = JSON.stringify(wallet); localStorage.setItem(key, serialised); diff --git a/src/pages/backup/ImportBackupModal.tsx b/src/pages/backup/ImportBackupModal.tsx index 1948fd7..3990c75 100644 --- a/src/pages/backup/ImportBackupModal.tsx +++ b/src/pages/backup/ImportBackupModal.tsx @@ -69,7 +69,7 @@ if (!files?.[0]) return; const file = files[0]; - debug("importing file %s: %o", file.name, file); + debug("importing file %s", file.name); // Disallow non-plaintext files if (file.type !== "text/plain") { @@ -90,7 +90,7 @@ } const contents = e.target.result.toString(); - debug("got file contents: %s", contents); + // debug("got file contents: %s", contents); // Update the form setCode(contents); // Triggers a format re-detection diff --git a/src/pages/backup/backupImportV1.ts b/src/pages/backup/backupImportV1.ts index 2a795db..9788dae 100644 --- a/src/pages/backup/backupImportV1.ts +++ b/src/pages/backup/backupImportV1.ts @@ -82,11 +82,12 @@ await to((async () => JSON.parse(dec))()); if (err) throw new BackupWalletError("errorWalletJSON"); - debug("v1 wallet %s full data:", uuid, wallet); + // Removed for #25 + // debug("v1 wallet %s full data:", uuid, wallet); // Validate the type of the decrypted wallet data if (!isPlainObject(wallet)) { - debug("v1 wallet %s had decrypted type %s", uuid, typeof wallet, wallet); + debug("v1 wallet %s had decrypted type %s", uuid, typeof wallet); throw new BackupWalletError("errorInvalidTypeObject"); } @@ -222,7 +223,7 @@ newWalletData, password, true ); - debug("new wallet %s (%s): %o", newWallet.id, newWallet.address, newWallet); + debug("new wallet %s (%s)", newWallet.id, newWallet.address); // Add it to the results results.newWallets++; diff --git a/src/pages/settings/translations/importJSON.ts b/src/pages/settings/translations/importJSON.ts index 566448d..efb54e2 100644 --- a/src/pages/settings/translations/importJSON.ts +++ b/src/pages/settings/translations/importJSON.ts @@ -41,7 +41,7 @@ if (!files?.[0]) return; const file = files[0]; - debug("importing file %s: %o", file.name, file); + debug("importing file %s", file.name); // Disallow non-JSON files if (file.type !== "application/json") { @@ -56,7 +56,7 @@ if (!e.target || !e.target.result) return; const contents = e.target.result.toString(); - debug("got file contents: %s", contents); + // debug("got file contents: %s", contents); importLanguage(contents) .catch(err => {