Skip to content

Commit 1afda5e

Browse files
VIA-615 AJ/AS/SB log warning since it should only error if retry exhausts
1 parent 63a66ae commit 1afda5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/get-secret.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const getSecret = async (name: string): Promise<string> => {
3030
return rawAPIResponse.data.SecretString;
3131
} catch (error) {
3232
if (error instanceof AxiosError) {
33-
log.error(
33+
log.warn(
3434
{
3535
error: {
3636
code: error.code,
@@ -43,7 +43,7 @@ const getSecret = async (name: string): Promise<string> => {
4343
"AxiosError: Error in getting secret from SecretsManager",
4444
);
4545
} else {
46-
log.error({ context: { param: name } }, "Error in getting secret from SecretsManager");
46+
log.warn({ context: { param: name } }, "Error in getting secret from SecretsManager");
4747
}
4848
throw error;
4949
}

0 commit comments

Comments
 (0)