mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
改进console
This commit is contained in:
@@ -44,13 +44,13 @@ class Handle
|
|||||||
'message' => $this->getMessage($exception),
|
'message' => $this->getMessage($exception),
|
||||||
'code' => $this->getCode($exception),
|
'code' => $this->getCode($exception),
|
||||||
];
|
];
|
||||||
$log = "[{$data['code']}]{$data['message']}[{$data['file']}:{$data['line']}]";
|
$log = "[{$data['code']}]{$data['message']}[{$data['file']}:{$data['line']}]";
|
||||||
} else {
|
} else {
|
||||||
$data = [
|
$data = [
|
||||||
'code' => $this->getCode($exception),
|
'code' => $this->getCode($exception),
|
||||||
'message' => $this->getMessage($exception),
|
'message' => $this->getMessage($exception),
|
||||||
];
|
];
|
||||||
$log = "[{$data['code']}]{$data['message']}";
|
$log = "[{$data['code']}]{$data['message']}";
|
||||||
}
|
}
|
||||||
|
|
||||||
Log::record($log, 'error');
|
Log::record($log, 'error');
|
||||||
@@ -91,7 +91,7 @@ class Handle
|
|||||||
if (App::$debug) {
|
if (App::$debug) {
|
||||||
$output->setVerbosity(Output::VERBOSITY_DEBUG);
|
$output->setVerbosity(Output::VERBOSITY_DEBUG);
|
||||||
}
|
}
|
||||||
(new Console)->renderException($e, $output);
|
$output->renderException($e);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user