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

Add debug logs #32

merged 2 commits into from
Dec 6, 2017

Conversation

theofidry
Copy link
Collaborator

@theofidry theofidry commented Oct 25, 2017

Small change but I find that useful and in insight would have made it easier for #23

@@ -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()->write('<info>Changed current directory to ' . $dir . '</info>', true, IOInterface::VERBOSE);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not leaving it to stderr?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's not an error is it?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

stderr is not limited to errors, it should also be used for diagnostic / debug output. I think this is also what composer / symfony recommend (cf. symfony/symfony#18744 (comment) for example).

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I see, well I learned something today! Thanks for the link I'll update the PR shortly

@bamarni bamarni merged commit 5ba4086 into bamarni:master Dec 6, 2017
@theofidry theofidry deleted the patch-3 branch March 17, 2019 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants