Skip to content

Commit 47441d9

Browse files
committed
Additional entra logging (#19497)
1 parent 65e9677 commit 47441d9

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/connectionconfig/connectionDialogWebviewController.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,7 @@ export class ConnectionDialogWebviewController extends FormWebviewController<
924924
callback: async () => {
925925
const account = await this._mainController.azureAccountService.addAccount();
926926
this.logger.verbose(
927-
`Added Azure account '${account.displayInfo}', ${account.key.id}`,
927+
`Added Azure account '${account.displayInfo?.displayName}', ${account.key.id}`,
928928
);
929929

930930
const accountsComponent = this.getFormComponent(this.state, "accountId");
@@ -939,12 +939,14 @@ export class ConnectionDialogWebviewController extends FormWebviewController<
939939
this.logger,
940940
);
941941

942-
this.state.connectionProfile.accountId = account.key.id;
943-
944942
this.logger.verbose(
945-
`Read ${accountsComponent.options.length} Azure accounts, selecting '${account.key.id}'`,
943+
`Read ${accountsComponent.options.length} Azure accounts: ${accountsComponent.options.map((a) => a.value).join(", ")}`,
946944
);
947945

946+
this.state.connectionProfile.accountId = account.key.id;
947+
948+
this.logger.verbose(`Selecting '${account.key.id}'`);
949+
948950
this.updateState();
949951
await this.handleAzureMFAEdits("accountId");
950952
},

0 commit comments

Comments
 (0)