This commit is contained in:
2021-03-23 10:32:28 +08:00
parent 66a5627486
commit b36531b0f6
+11 -11
View File
@@ -107,7 +107,7 @@ class Application extends BaseApplication
*/
public function start(Input $argv): void
{
try {
// try {
fire(Event::SERVER_BEFORE_START);
if (env('debug') == 'false') {
$annotation = Snowflake::app()->getAttributes();
@@ -117,16 +117,16 @@ class Application extends BaseApplication
$manager->setParameters($argv);
$class = $manager->search();
response()->send($manager->execCommand($class));
} catch (\Throwable $exception) {
var_dump($exception);
// response()->send(implode("\n", [
// 'Msg: ' . $exception->getMessage(),
// 'Line: ' . $exception->getLine(),
// 'File: ' . $exception->getFile()
// ]));
} finally {
Timer::clearAll();
}
// } catch (\Throwable $exception) {
// var_dump($exception);
//// response()->send(implode("\n", [
//// 'Msg: ' . $exception->getMessage(),
//// 'Line: ' . $exception->getLine(),
//// 'File: ' . $exception->getFile()
//// ]));
// } finally {
// Timer::clearAll();
// }
}
/**