Skip to content

Commit

Permalink
Adjust verbosity level based on current env
Browse files Browse the repository at this point in the history
  • Loading branch information
mohatt committed Oct 5, 2016
1 parent 3f1933d commit 3767f19
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
$environment = new Environment($input);

$output = new ConsoleOutput(
OutputInterface::VERBOSITY_NORMAL,
$environment->isDevelopment()
? OutputInterface::VERBOSITY_VERBOSE
: OutputInterface::VERBOSITY_NORMAL,
null,
new OutputFormatter()
);
Expand All @@ -46,5 +48,5 @@
$container->setProcessFactory(new ProcessFactory($logger));
$container->setFilesystem(new Filesystem());

# Run our cli app
# Run our app
$container->getApplication()->run();

0 comments on commit 3767f19

Please sign in to comment.