Skip to content
This repository was archived by the owner on Nov 27, 2020. It is now read-only.

Show console log channel so that command runs with error code are visible #1107

Closed
wants to merge 1 commit into from

Conversation

VasekPurchart
Copy link

I think that the change introduced in #1044 not such a clear cut case, just spent a lot of time finding why it is not shown any more. With the exception/error case I agree, that the log statement is superfluous, but that is not the case for error codes.

Imagine a command which signals success/failure by return codes (as is usual in CLI), then when you run it, you have no visible feedback on whether it was run successfully or not:

bin/console hello:world

with the logging for console not filtered out it would be much more user friendly:

bin/console hello:world
17:47:32 ERROR     [console] Command "hello:world" exited with code "123" ["command" => "hello:world","code" => 123] []

which is I think exactly the reason why the printing out logs in console feature was introduced.


To sum it up, I think not showing the logs in the error code case is more developer unfriendly than them being showed when not needed.

cc @chalasr

@Tobion
Copy link
Contributor

Tobion commented May 25, 2020

Closing as outdated. Please open against https://github.com/symfony/recipes if you still think this is required.

@Tobion Tobion closed this May 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants