Add Azure account initialization logging (#13235)

This commit is contained in:
Charles Gagnon
2020-11-04 13:24:09 -08:00
committed by GitHub
parent 6b2c409cff
commit bfb2c20e0f
2 changed files with 2 additions and 1 deletions

View File

@@ -88,6 +88,7 @@ export class AzureAccountProvider implements azdata.AccountProvider, vscode.Disp
private async _initialize(storedAccounts: azdata.Account[]): Promise<azdata.Account[]> {
const accounts: azdata.Account[] = [];
console.log(`Initializing stored accounts ${JSON.stringify(accounts)}`);
for (let account of storedAccounts) {
const azureAuth = this.getAuthMethod(account);
if (!azureAuth) {

View File

@@ -206,7 +206,7 @@ export default class AccountStore implements IAccountStore {
if (!accounts) {
accounts = [];
}
this.logService.debug(`Read accounts from memento ${JSON.stringify(accounts)}`);
// Make a deep copy of the account list to ensure that the memento list isn't obliterated
accounts = deepClone(accounts);