This commit is contained in:
2021-01-04 16:33:46 +08:00
parent ba01456f2e
commit 2f5bf98966
2 changed files with 2 additions and 2 deletions
-2
View File
@@ -92,7 +92,6 @@ class BaseObject implements Configure
*/
public function addError($message, $model = 'app'): bool
{
var_dump(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS));
if ($message instanceof \Throwable) {
$this->error($message->getMessage(), $message->getFile(), $message->getLine());
} else {
@@ -173,7 +172,6 @@ class BaseObject implements Configure
*/
public function error(mixed $message, $method = null, $file = null)
{
var_dump(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS));
if (!empty($file)) {
echo "\033[41;37m[ERROR][" . date('Y-m-d H:i:s') . ']: ' . $file . "\033[0m";
echo PHP_EOL;