Added verbose error log for dev mode
This commit is contained in:
parent
7484656be3
commit
13847fc155
1 changed files with 9 additions and 0 deletions
|
@ -29,4 +29,13 @@ $cli
|
||||||
Console::log(App::getEnv('_APP_VERSION', 'UNKNOWN'));
|
Console::log(App::getEnv('_APP_VERSION', 'UNKNOWN'));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$cli
|
||||||
|
->error(function ($error) {
|
||||||
|
if(App::getEnv('_APP_ENV', 'development')) {
|
||||||
|
Console::error($error);
|
||||||
|
} else {
|
||||||
|
Console::error($error->getMessage());
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
$cli->run();
|
$cli->run();
|
||||||
|
|
Loading…
Reference in a new issue