diff --git a/RpcJsonp.php b/RpcJsonp.php index e15f12d..0751928 100644 --- a/RpcJsonp.php +++ b/RpcJsonp.php @@ -117,6 +117,9 @@ class RpcJsonp extends Component implements OnConnectInterface, OnReceiveInterfa return $server->send($fd, $this->batchDispatch($data), $reactor_id); } catch (\Throwable $throwable) { $response = Json::encode($this->failure(-32700, $throwable->getMessage())); + + $this->getLogger()->json_log($throwable); + return $server->send($fd, $response, $reactor_id); } }