- First commit to issue fork.
- Merge request !9Issue #3239006 by vierlex: Skip logging when using drush & JSON formatting → (Open) created by vierlex
- 🇦🇹Austria vierlex
Hello.
We are using the Module and rely on having it Output a JSON String to stdout.
The same problem has been creeping up in another Logging Project as well:
https://www.drupal.org/project/monolog/issues/3223751#comment-14385101 →There are drush Issues:
https://github.com/drush-ops/drush/issues/4281
https://github.com/drush-ops/drush/issues/4790But in the end, the way of logging JSON to stdout collides with a Symfony package which drush/drupal uses indirectly,
which uses stdout to pass around a JSON string, for 'communication purposes', when managing batch processes.
https://github.com/consolidation/site-process/issues/56Since there is not easy way to change modules or the formatting of the log message in the project i am working on right now,
I opened up an MR which skips in that specific case any logging, which isn't ideal, but it makes the drush configuration import not crash anymore.