Bug #99493
openOn CLI no exceptions are logged
0%
Description
Since symfony/console catches all exceptions from commands
to render the exception, the TYPO3 exception handler is never triggered,
thus not only completely unused on CLI, but also does not log anything
to the configured logs
Updated by Andreas Kienast about 1 year ago
The easiest solution is to set $this->application->setCatchExceptions(false);
in typo3/sysext/core/Classes/Console/CommandApplication.php
, with the downside that exceptions are not pretty-printed anymore in CLI.
Updated by Torben Hansen 12 months ago
- Related to Bug #99912: ProductionExceptionHandler does not handle CLI Exceptions added
Updated by Torben Hansen 12 months ago
With #99912, setCatchExceptions(false)
has been implemented. So now we have exceptions, but as afernandez
wrote, this looks not very nice. I think, our ExceptionHandlers should at least try to catch/pretty print common Symfony exceptions like CommandNotFoundException
and avoid throwing them.
Updated by Torben Hansen 12 months ago
Created a new issue for my suggestion - see #100871