This commit is contained in:
2020-12-24 11:12:23 +08:00
parent 5a7c7176dc
commit f18031c2c0
18 changed files with 39 additions and 39 deletions
+2 -2
View File
@@ -12,7 +12,7 @@ namespace Snowflake\Error;
use Exception;
use Snowflake\Abstracts\Component;
use Snowflake\Abstracts\Config;
use Snowflake\Core\JSON;
use Snowflake\Core\Json;
use Snowflake\Snowflake;
use Swoole\Process;
use Throwable;
@@ -258,7 +258,7 @@ class Logger extends Component
$logger->write($string . $exception->getTraceAsString(), 'trace');
$logger->write(jTraceEx($exception), 'exception');
return JSON::to($code, $errorInfo['message'], [
return Json::to($code, $errorInfo['message'], [
'file' => $exception->getFile(),
'line' => $exception->getLine()
]);