Skip to content

Commit 63cf28b

Browse files
authored
remove unnecessary auth function logger (#4536)
1 parent cc3300d commit 63cf28b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/core/src/codewhisperer/util/authUtil.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,9 +286,12 @@ export class AuthUtil {
286286

287287
public isConnectionValid(): boolean {
288288
const connectionValid = this.conn !== undefined && !this.secondaryAuth.isConnectionExpired
289-
getLogger().debug(`codewhisperer: Connection is valid = ${connectionValid},
289+
if (connectionValid === false) {
290+
getLogger().debug(`codewhisperer: Connection is valid = ${connectionValid},
290291
connection is undefined = ${this.conn === undefined},
291292
secondaryAuth connection expired = ${this.secondaryAuth.isConnectionExpired}`)
293+
}
294+
292295
return connectionValid
293296
}
294297

0 commit comments

Comments
 (0)