Open jorissteyn opened 7 years ago
@jorissteyn you can also try server -vvv
@jorissteyn We can probably add something like that code you propose to the ShellProcess service https://github.com/hechoendrupal/drupal-console-core/blob/master/src/Utils/ShellProcess.php and update the server command to use that service.
On master, there seems to be regression introduced in https://github.com/hechoendrupal/drupal-console/pull/3088. When running the server command in tty-mode, I expect lines such as:
But they do not show up anymore.
Furthermore, and perhaps this should be a separate issue in the issue tracker, I believe it is very valuable to support disabling tty-mode. With tty-mode, it is impossible to capture the output of the command. For example, when running the server command in the background on Travis CI, the output of behat will be cluttered with log messages of the server command.
I propose to add an option to disable tty-mode. In 1.x that could be implemented like this:
But the refactoring going on in master necessitates another approach. The basic idea will be the same: enable tty-mode, or disable tty-mode and write the output ourselves.