Remove debugging console.log statements

Clean up all temporary debugging console.log statements added during
registration status troubleshooting. Remove debug output from multiple
components while preserving essential error logging and functionality.

Changes:
- PlatformServiceMixin.ts: Remove debug logging from $saveUserSettings and $saveMySettings
- AccountViewView.vue: Remove debug logging from mounted, initializeState, checkLimits, and onRecheckLimits
- UsageLimitsSection.vue: Remove debug logging from lifecycle hooks and recheckLimits
- IdentitySwitcherView.vue: Remove debug logging from switchAccount method

All core functionality preserved including error handling with logger.error()
and user notifications. Codebase now production-ready without debugging noise.
This commit is contained in:
Matthew Raymer
2025-07-18 05:28:00 +00:00
parent b0058e16ca
commit 71ea9efda7
4 changed files with 5 additions and 72 deletions

View File

@@ -778,17 +778,12 @@ export const PlatformServiceMixin = {
changes: Partial<Settings>,
): Promise<boolean> {
try {
console.log('[DEBUG] $saveUserSettings - did:', did);
console.log('[DEBUG] $saveUserSettings - changes:', changes);
// Remove fields that shouldn't be updated
const { id, ...safeChanges } = changes;
// eslint-disable-next-line @typescript-eslint/no-unused-vars
void id;
safeChanges.accountDid = did;
console.log('[DEBUG] $saveUserSettings - safeChanges:', safeChanges);
if (Object.keys(safeChanges).length === 0) return true;
const setParts: string[] = [];
@@ -801,21 +796,14 @@ export const PlatformServiceMixin = {
}
});
console.log('[DEBUG] $saveUserSettings - setParts:', setParts);
console.log('[DEBUG] $saveUserSettings - params:', params);
if (setParts.length === 0) return true;
params.push(did);
const sql = `UPDATE settings SET ${setParts.join(", ")} WHERE accountDid = ?`;
console.log('[DEBUG] $saveUserSettings - SQL:', sql);
console.log('[DEBUG] $saveUserSettings - Final params:', params);
await this.$dbExec(sql, params);
console.log('[DEBUG] $saveUserSettings - Database update successful');
return true;
} catch (error) {
console.log('[DEBUG] $saveUserSettings - Error:', error);
logger.error(
"[PlatformServiceMixin] Error saving user settings:",
error,
@@ -833,14 +821,10 @@ export const PlatformServiceMixin = {
async $saveMySettings(changes: Partial<Settings>): Promise<boolean> {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const currentDid = (this as any).activeDid;
console.log('[DEBUG] $saveMySettings - changes:', changes);
console.log('[DEBUG] $saveMySettings - currentDid:', currentDid);
if (!currentDid) {
console.log('[DEBUG] $saveMySettings - No DID, using $saveSettings');
return await this.$saveSettings(changes);
}
console.log('[DEBUG] $saveMySettings - Using $saveUserSettings for DID:', currentDid);
return await this.$saveUserSettings(currentDid, changes);
},