opale/console-exception-bundle
Opale ConsoleExceptionBundle enhances exception handling for Symfony console commands, replacing noisy stack traces with clearer, more readable error output so CLI failures are easier to diagnose and debug. A lightweight integration for Symfony applications.
console.exception that logs through the app logger — closes a real gap in incident detection.kernel.exception-style console event subscriber plus Monolog's ConsoleHandler, or simply the Sentry/Monolog Symfony SDKs, which already capture console exceptions.Consider it only when all of the following hold:
Look elsewhere — i.e., do not adopt — when any of these are true (which is the default case):
To executives: We have a blind spot — when a scheduled job or console command fails, the error goes to a terminal nobody is watching. We found a package that addresses exactly this, but it is archived, unmaintained since 2016, and effectively unused (1 star, 0 dependents). Recommendation: do not add it as a dependency. Instead, spend roughly one engineering day implementing the same behavior in-house against our current Symfony version, and route output into the logging and alerting we already pay for. Outcome: CLI failures become visible and alertable this sprint, with no new supply-chain or maintenance risk.
To engineering: The pattern is a console exception event subscriber that catches throwables from commands, logs them through the existing PSR-3 logger (so they inherit our Monolog handlers, context processors, and Sentry transport), and lets the non-zero exit code propagate so schedulers still see failure. Scope is small, testable, and framework-native; it removes the need for a third-party bundle and gives us one place to add command-level context (command name, arguments, duration).
To security/procurement: No new third-party code enters the estate. This avoids an archived dependency with no CVE response path and no PHP 8 support — a small but permanent liability we would otherwise carry for a problem we can solve internally.
How can I help you explore Laravel packages today?