Skip to content

Commit

Permalink
set loglevel for node based on cli param in dev-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelangen committed May 29, 2020
1 parent 4540246 commit c604b26
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/core/src/server/cli/dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ async function getCLI(packageJson) {
.option('--docs', 'Build a documentation-only site using addon-docs')
.parse(process.argv);

logger.setLevel(program.loglevel);

// Workaround the `-h` shorthand conflict.
// Output the help if `-h` is called without any value.
// See storybookjs/storybook#5360
Expand Down

0 comments on commit c604b26

Please sign in to comment.