Skip to content

Commit

Permalink
Added NONE log level to suppress all logs. (#11176)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashika112 authored Feb 10, 2024
2 parents e9b9682 + 9a91250 commit ddfa86b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/aws-amplify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@
"name": "[Auth] confirmSignIn (Cognito)",
"path": "./dist/esm/auth/index.mjs",
"import": "{ confirmSignIn }",
"limit": "25.94 kB"
"limit": "25.96 kB"
},
{
"name": "[Auth] updateMFAPreference (Cognito)",
Expand Down
1 change: 1 addition & 0 deletions packages/core/src/Logger/ConsoleLogger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const LOG_LEVELS: Record<string, number> = {
INFO: 3,
WARN: 4,
ERROR: 5,
NONE: 6,
};

/**
Expand Down
1 change: 1 addition & 0 deletions packages/core/src/Logger/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,5 @@ export enum LogType {
INFO = 'INFO',
WARN = 'WARN',
VERBOSE = 'VERBOSE',
NONE = 'NONE'
}

0 comments on commit ddfa86b

Please sign in to comment.