This commit is contained in:
thinkphp
2016-06-15 15:46:27 +08:00
2 changed files with 9 additions and 6 deletions

View File

@@ -86,6 +86,9 @@ class Handle
*/
public function renderForConsole(Output $output, Exception $e)
{
if (APP_DEBUG) {
$output->setVerbosity(Output::VERBOSITY_DEBUG);
}
(new Console)->renderException($e, $output);
}