Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add debug logs #32

Merged
merged 2 commits into from
Dec 6, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/BinCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Composer\Console\Application as ComposerApplication;
use Composer\Factory;
use Composer\IO\IOInterface;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\StringInput;
Expand Down Expand Up @@ -103,6 +104,8 @@ private function executeInNamespace(ComposerApplication $application, $namespace
$this->chdir($namespace);
$input = new StringInput((string) $input . ' --working-dir=.');

$this->getIO()->writeError('<info>Run with <comment>' . $input->__toString() . '</comment></info>', true, IOInterface::VERBOSE);

return $application->doRun($input, $output);
}

Expand Down Expand Up @@ -132,7 +135,7 @@ private function resetComposers(ComposerApplication $application)
private function chdir($dir)
{
chdir($dir);
$this->getIO()->writeError('<info>Changed current directory to ' . $dir . '</info>');
$this->getIO()->writeError('<info>Changed current directory to ' . $dir . '</info>', true, IOInterface::VERBOSE);
}

private function createConfig()
Expand Down