From ffca2c303b62c3d2e2232bb323d4cc49a7cbec13 Mon Sep 17 00:00:00 2001 From: dongwei <838456736@qq.com> Date: Sat, 19 Jan 2019 16:59:19 +0800 Subject: [PATCH] server logger --- src/Server/JsonRpcServer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Server/JsonRpcServer.php b/src/Server/JsonRpcServer.php index 4431111..2129097 100644 --- a/src/Server/JsonRpcServer.php +++ b/src/Server/JsonRpcServer.php @@ -65,7 +65,7 @@ class JsonRpcServer app('rpc.logger')->info('server', [$id, $class,$method, $params, $this->request->header('client_app'), $this->request->header('client_addr'), $this->request->header('client_host')]); $ret = call_user_func_array([(new $class($id, $this->request)), $function], $params); - app('rpc.logger')->info('server_result', [$id, $ret]); + app('rpc.logger')->info('server_result', [$id, \GuzzleHttp\json_decode($ret, true)]); return $ret; } catch (\InvalidArgumentException $e) {