monolog-bundle icon indicating copy to clipboard operation
monolog-bundle copied to clipboard

ConsoleHandler Output lost when nesting console commands

Open DemigodCode opened this issue 4 years ago • 0 comments

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.

DemigodCode avatar Mar 22 '21 19:03 DemigodCode