File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed
packages/create-amplify/src Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -70,12 +70,8 @@ void describe('Logger', () => {
70
70
verbose : false ,
71
71
} ;
72
72
73
- const mockProcessEnv = { CI : 'true' } ;
74
-
75
73
const mockMinimumLogLevel =
76
- mockArgs . debug || mockArgs . verbose || mockProcessEnv . CI === 'true'
77
- ? LogLevel . DEBUG
78
- : LogLevel . INFO ;
74
+ mockArgs . debug || mockArgs . verbose ? LogLevel . DEBUG : LogLevel . INFO ;
79
75
80
76
const logger = new Logger ( mockConsole as never , mockMinimumLogLevel ) ;
81
77
await logger . debug ( 'Test log message' ) ;
Original file line number Diff line number Diff line change @@ -77,9 +77,7 @@ export const argv = await yargs(process.argv.slice(2)).options({
77
77
} ) . argv ;
78
78
79
79
const minimumLogLevel =
80
- argv . debug || argv . verbose || process . env . CI === 'true'
81
- ? LogLevel . DEBUG
82
- : LogLevel . INFO ;
80
+ argv . debug || argv . verbose ? LogLevel . DEBUG : LogLevel . INFO ;
83
81
84
82
const logger = new Logger ( global . console , minimumLogLevel ) ;
85
83
You can’t perform that action at this time.
0 commit comments