forked from jsnbuchanan/crowd-funder-for-time-pwa
Remove DEBUG console.log statements across codebase
- Eliminated all debugging console statements from 7 files (194 deletions) - Fixed parsing errors from broken function calls in databaseUtil.ts - Resolved orphaned console.log parameters in util.ts and ImportAccountView.vue - Maintained legitimate logging in PlatformServiceFactory and registerServiceWorker - Reduced lint issues from 33 problems (11 errors + 22 warnings) to 16 warnings - All builds and core functionality verified working
This commit is contained in:
@@ -189,12 +189,6 @@ export default class ImportAccountView extends Vue {
|
||||
* Uses importFromMnemonic utility for secure import
|
||||
*/
|
||||
public async onImportClick() {
|
||||
console.log("🔑 DEBUG: Import process started");
|
||||
console.log("🔑 DEBUG: Mnemonic length:", this.mnemonic.split(" ").length);
|
||||
console.log("🔑 DEBUG: Derivation path:", this.derivationPath);
|
||||
console.log("🔑 DEBUG: Should erase:", this.shouldErase);
|
||||
console.log("🔑 DEBUG: API Server:", this.apiServer);
|
||||
|
||||
if (!this.mnemonic?.trim()) {
|
||||
this.notify.warning(
|
||||
"Seed phrase is required to import an account.",
|
||||
@@ -204,17 +198,14 @@ export default class ImportAccountView extends Vue {
|
||||
}
|
||||
|
||||
try {
|
||||
console.log("🔑 DEBUG: Calling importFromMnemonic...");
|
||||
await importFromMnemonic(
|
||||
this.mnemonic,
|
||||
this.derivationPath,
|
||||
this.shouldErase,
|
||||
);
|
||||
console.log("🔑 DEBUG: importFromMnemonic completed successfully");
|
||||
|
||||
// Check what was actually imported
|
||||
const settings = await this.$accountSettings();
|
||||
console.log("🔑 DEBUG: Post-import settings:", settings);
|
||||
|
||||
// Check account-specific settings
|
||||
if (settings?.activeDid) {
|
||||
@@ -223,25 +214,13 @@ export default class ImportAccountView extends Vue {
|
||||
"SELECT * FROM settings WHERE accountDid = ?",
|
||||
[settings.activeDid],
|
||||
);
|
||||
console.log(
|
||||
"🔑 DEBUG: Post-import account-specific settings:",
|
||||
accountSettings,
|
||||
);
|
||||
} catch (error) {
|
||||
console.log("🔑 DEBUG: Error checking post-import settings:", error);
|
||||
}
|
||||
}
|
||||
|
||||
this.notify.success("Account imported successfully!", TIMEOUTS.STANDARD);
|
||||
this.$router.push({ name: "account" });
|
||||
} catch (error: any) {
|
||||
console.log("🔑 DEBUG: Import failed with error:", error);
|
||||
console.log("🔑 DEBUG: Error details:", {
|
||||
message: error.message,
|
||||
stack: error.stack,
|
||||
name: error.name,
|
||||
});
|
||||
|
||||
this.$logError("Import failed: " + error);
|
||||
this.notify.error(
|
||||
error.message || "Failed to import account.",
|
||||
|
||||
Reference in New Issue
Block a user