Skip to content

Commit

Permalink
fix(credential-provider-imds): credential expiration extension log me…
Browse files Browse the repository at this point in the history
…ssage (smithy-lang#1175)
  • Loading branch information
davecardwell authored Feb 29, 2024
1 parent 64cd9c8 commit eea7af7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/tough-bikes-sit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@smithy/credential-provider-imds": patch
---

fix: credential expiration extension log message
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const getExtendedInstanceMetadataCredentials = (
const newExpiration = new Date(Date.now() + refreshInterval * 1000);
logger.warn(
"Attempting credential expiration extension due to a credential service availability issue. A refresh of these " +
"credentials will be attempted after ${new Date(newExpiration)}.\nFor more information, please visit: " +
`credentials will be attempted after ${new Date(newExpiration)}.\nFor more information, please visit: ` +
STATIC_STABILITY_DOC_URL
);
const originalExpiration = credentials.originalExpiration ?? credentials.expiration;
Expand Down

0 comments on commit eea7af7

Please sign in to comment.