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:
@@ -219,22 +219,15 @@ export default class IdentitySwitcherView extends Vue {
|
||||
}
|
||||
|
||||
async switchAccount(did?: string) {
|
||||
console.log('[DEBUG] IdentitySwitcher - switchAccount called with DID:', did);
|
||||
console.log('[DEBUG] IdentitySwitcher - Current activeDid before switch:', this.activeDid);
|
||||
|
||||
// Save the new active DID to master settings
|
||||
await this.$saveSettings({ activeDid: did });
|
||||
console.log('[DEBUG] IdentitySwitcher - Saved new activeDid to master settings');
|
||||
|
||||
// Check if we need to load user-specific settings for the new DID
|
||||
if (did) {
|
||||
console.log('[DEBUG] IdentitySwitcher - Loading user-specific settings for DID:', did);
|
||||
try {
|
||||
const userSettings = await this.$accountSettings(did);
|
||||
console.log('[DEBUG] IdentitySwitcher - User settings loaded:', userSettings);
|
||||
console.log('[DEBUG] IdentitySwitcher - User isRegistered:', userSettings.isRegistered);
|
||||
await this.$accountSettings(did);
|
||||
} catch (error) {
|
||||
console.log('[DEBUG] IdentitySwitcher - Error loading user settings:', error);
|
||||
// Handle error silently - user settings will be loaded when needed
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user