samedi 4 février 2017

Artisan --verbose option does not work if exceptions occur in service provider

I'm developing a package for Laravel 5.4 and if an exception is throw before Artisan Commands are instantiated then "--verbose" has no effect, and I cannot see the stack trace. But, it works fine when the exception is thrown after the handle() method of the artisan command is called.

The exception (which I later tracked down the hard way) is occurring in the constructor of a class when the class is being resolved by laravel's container.

The logs do have the full stack trace but it'd be a whole lot easier if the stack traces were shown in the terminal.



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2l4CaWJ
via IFTTT

Aucun commentaire:

Enregistrer un commentaire