Skip to content

Commit 7a6ca47

Browse files
lukeedmichael-ciniawsky
authored andcommittedSep 3, 2018
fix(utils/createLogger): ensure quiet always takes precedence (options.quiet) (#1486)
1 parent 065978f commit 7a6ca47

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎lib/utils/createLogger.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ const log = require('webpack-log');
88
function createLogger (options) {
99
let level = options.logLevel || 'info';
1010

11-
if (options.quiet === true) {
12-
level = 'silent';
13-
}
14-
1511
if (options.noInfo === true) {
1612
level = 'warn';
1713
}
1814

15+
if (options.quiet === true) {
16+
level = 'silent';
17+
}
18+
1919
return log({
2020
name: 'wds',
2121
level,

0 commit comments

Comments
 (0)
Please sign in to comment.