We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63a66ae commit 1afda5eCopy full SHA for 1afda5e
src/utils/get-secret.ts
@@ -30,7 +30,7 @@ const getSecret = async (name: string): Promise<string> => {
30
return rawAPIResponse.data.SecretString;
31
} catch (error) {
32
if (error instanceof AxiosError) {
33
- log.error(
+ log.warn(
34
{
35
error: {
36
code: error.code,
@@ -43,7 +43,7 @@ const getSecret = async (name: string): Promise<string> => {
43
"AxiosError: Error in getting secret from SecretsManager",
44
);
45
} else {
46
- log.error({ context: { param: name } }, "Error in getting secret from SecretsManager");
+ log.warn({ context: { param: name } }, "Error in getting secret from SecretsManager");
47
}
48
throw error;
49
0 commit comments