Bug #99493
closedOn 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 over 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 over 1 year ago
- Related to Bug #99912: ProductionExceptionHandler does not handle CLI Exceptions added
Updated by Torben Hansen over 1 year 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 over 1 year ago
Created a new issue for my suggestion - see #100871
Updated by Helmut Hummel over 1 year ago
Updated by Garvin Hicking 3 months ago
- Category set to Logging
- Status changed from New to Closed
If I read this right, with the implementation of #100871 this got addressed? Please get in touch if this is wrong and we can see how to consolidate. Thanks!