Skip to content

Commit

Permalink
fix(utils/createLogger): ensure quiet always takes precedence (`opt…
Browse files Browse the repository at this point in the history
…ions.quiet`) (#1486)
  • Loading branch information
lukeed authored and michael-ciniawsky committed Sep 3, 2018
1 parent 065978f commit 7a6ca47
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/utils/createLogger.js
Expand Up @@ -8,14 +8,14 @@ const log = require('webpack-log');
function createLogger (options) {
let level = options.logLevel || 'info';

if (options.quiet === true) {
level = 'silent';
}

if (options.noInfo === true) {
level = 'warn';
}

if (options.quiet === true) {
level = 'silent';
}

return log({
name: 'wds',
level,
Expand Down

0 comments on commit 7a6ca47

Please sign in to comment.