Skip to content

Commit 2bddbfe

Browse files
committed
change logging statements
1 parent f805cb8 commit 2bddbfe

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

packages/core/src/auth/auth.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -857,6 +857,8 @@ export class Auth implements AuthService, ConnectionManager {
857857
}
858858

859859
private async getCachedCredentials(provider: CredentialsProvider) {
860+
//eslint-disable-next-line aws-toolkits/no-console-log
861+
console.log('getCachedCredentials called')
860862
const creds = await globals.loginManager.store.getCredentials(provider.getCredentialsId())
861863
if (creds !== undefined && creds.credentialsHashCode === provider.getHashCode()) {
862864
return creds.credentials
@@ -901,6 +903,8 @@ export class Auth implements AuthService, ConnectionManager {
901903

902904
private readonly getCredentials = keyedDebounce(this._getCredentials.bind(this))
903905
private async _getCredentials(id: Connection['id'], provider: CredentialsProvider): Promise<Credentials> {
906+
//eslint-disable-next-line aws-toolkits/no-console-log
907+
console.log('_getCredentials called')
904908
const credentials = await this.getCachedCredentials(provider)
905909
if (credentials !== undefined) {
906910
//eslint-disable-next-line aws-toolkits/no-console-log

packages/core/src/auth/credentials/store.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ export class CredentialsStore {
3131
*/
3232
public isValid(key: string): boolean {
3333
if (this.credentialsCache[key]) {
34-
//eslint-disable-next-line aws-toolkits/no-console-log
35-
console.log('credentialsCache=%O', this.credentialsCache[key])
3634
const expiration = this.credentialsCache[key].credentials.expiration
3735
return expiration !== undefined ? expiration >= new globals.clock.Date() : true
3836
}

packages/core/src/auth/secondaryAuth.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,6 @@ export class SecondaryAuth<T extends Connection = Connection> {
148148
})
149149

150150
const refreshConn = (event: string) => {
151-
//eslint-disable-next-line aws-toolkits/no-console-log
152-
console.log('refreshing connection with event=%s', event)
153151
getLogger().debug(`secondaryAuth: detected ${event} event in sso cache, refreshing auth.`)
154152
globals.clock.setTimeout(
155153
telemetry.function_call.run(
@@ -160,12 +158,8 @@ export class SecondaryAuth<T extends Connection = Connection> {
160158
getLogger().debug(
161159
`secondaryAuth: cache event did not update global state, no refresh is needed.`
162160
)
163-
//eslint-disable-next-line aws-toolkits/no-console-log
164-
console.log('secondaryAuth: cache event did not update global state, no refresh is needed.')
165161
return
166162
}
167-
//eslint-disable-next-line aws-toolkits/no-console-log
168-
console.log('secondaryAuth: restorePreviousSession/restoreConnecton')
169163
await this.auth.restorePreviousSession()
170164
await this.restoreConnection(true)
171165
},

0 commit comments

Comments
 (0)