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

ConsoleHandler Output lost when nesting console commands #398

Open
DemigodCode opened this issue Mar 22, 2021 · 0 comments
Open

ConsoleHandler Output lost when nesting console commands #398

DemigodCode opened this issue Mar 22, 2021 · 0 comments

Comments

@DemigodCode
Copy link

DemigodCode commented Mar 22, 2021

If I call another console command in a running console command, the output is closed after the inner command returns.

E.g.
Run Messenge consumer which starts a console command.
After starting the console command, the output is overwritten by the new output, provided to Application.php by running the inner command.
When the inner command ends, the Application.php fires a terminate event, which causes the ConsoleHandler to close the output.
After that there is no more output on console available.

Solution:
Maybe the Handlers should stack there outputs and get the last out of the stack when the terminate event is fired until there is no output left and then close the handler.

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

No branches or pull requests

1 participant