Skip to content

Commit 2be7f2f

Browse files
committed
add more logging
1 parent 176ae5f commit 2be7f2f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/core/src/shared/credentials/userCredentialsUtils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ export class UserCredentialsUtils {
100100
console.log('hit case where dest exists')
101101
contents.unshift(header)
102102
}
103-
103+
//eslint-disable-next-line aws-toolkits/no-console-log
104+
console.log('contents=%O', contents)
104105
await fs.writeFile(dest, contents.join('\n'))
105106
}
106107
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,7 @@ describe('Auth', function () {
528528
const newCreds = { ...initialCreds, accessKey: 'y', secretKey: 'y' }
529529
await UserCredentialsUtils.generateCredentialsFile(newCreds)
530530
console.log('file exists after generating=%O', await fs.exists(getCredentialsFilename()))
531+
console.log('file contents = %O', await fs.readFileText(getCredentialsFilename()))
531532
assert.deepStrictEqual(await conn.getCredentials(), {
532533
accessKeyId: newCreds.accessKey,
533534
secretAccessKey: newCreds.secretKey,

0 commit comments

Comments
 (0)