Skip to content

Commit 82fce9f

Browse files
authored
Add info logging for edit sessions auth (microsoft#158538)
Add info logging re: microsoft#158384
1 parent d5f6599 commit 82fce9f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/vs/workbench/contrib/editSessions/browser/editSessionsWorkbenchService.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,20 +189,20 @@ export class EditSessionsWorkbenchService extends Disposable implements IEditSes
189189
private async getAuthenticationSession() {
190190
// If the user signed in previously and the session is still available, reuse that without prompting the user again
191191
if (this.existingSessionId) {
192-
this.logService.trace(`Searching for existing authentication session with ID ${this.existingSessionId}`);
192+
this.logService.info(`Searching for existing authentication session with ID ${this.existingSessionId}`);
193193
const existingSession = await this.getExistingSession();
194194
if (existingSession) {
195-
this.logService.trace(`Found existing authentication session with ID ${existingSession.session.id}`);
195+
this.logService.info(`Found existing authentication session with ID ${existingSession.session.id}`);
196196
return { sessionId: existingSession.session.id, token: existingSession.session.idToken ?? existingSession.session.accessToken, providerId: existingSession.session.providerId };
197197
}
198198
}
199199

200200
// If settings sync is already enabled, avoid asking again to authenticate
201201
if (this.userDataSyncEnablementService.isEnabled()) {
202-
this.logService.trace(`Reusing user data sync enablement`);
202+
this.logService.info(`Reusing user data sync enablement`);
203203
const authenticationSessionInfo = await getCurrentAuthenticationSessionInfo(this.credentialsService, this.productService);
204204
if (authenticationSessionInfo !== undefined) {
205-
this.logService.trace(`Using current authentication session with ID ${authenticationSessionInfo.id}`);
205+
this.logService.info(`Using current authentication session with ID ${authenticationSessionInfo.id}`);
206206
this.existingSessionId = authenticationSessionInfo.id;
207207
return { sessionId: authenticationSessionInfo.id, token: authenticationSessionInfo.accessToken, providerId: authenticationSessionInfo.providerId };
208208
}

0 commit comments

Comments
 (0)