mirror of
https://github.com/sofastack/sofa-rpc-node.git
synced 2026-01-18 15:55:54 +00:00
fix: 删除用户传参相关错误日志
This commit is contained in:
parent
a5d779a989
commit
6490f1cbe8
@ -88,7 +88,7 @@ class RpcServer extends Base {
|
||||
}
|
||||
|
||||
get listenPorts() {
|
||||
return [this.publishPort];
|
||||
return [ this.publishPort ];
|
||||
}
|
||||
|
||||
get logger() {
|
||||
@ -188,7 +188,7 @@ class RpcServer extends Base {
|
||||
this._handleUncaughtError();
|
||||
},
|
||||
});
|
||||
Promise.all(this._servers.map(server => awaitFirst(server, ['listening', 'error'])))
|
||||
Promise.all(this._servers.map(server => awaitFirst(server, [ 'listening', 'error' ])))
|
||||
.then(() => {
|
||||
this.emit('listening');
|
||||
this.ready(true);
|
||||
@ -254,7 +254,7 @@ class RpcServer extends Base {
|
||||
this._connections.set(key, conn);
|
||||
conn.on('request', req => {
|
||||
this._handleRequest(req, conn).catch(err => {
|
||||
const { packetId, packetType, className, options, meta, ctx } = req
|
||||
const { packetId, packetType, className, options, meta, ctx } = req;
|
||||
const { targetAppName, methodName, serverSignature, interfaceName, methodArgSigs, requestProps } = req.data;
|
||||
err.req = { packetId, packetType, className, options, meta, ctx, data: { targetAppName, methodName, serverSignature, interfaceName, methodArgSigs, requestProps } };
|
||||
this.emit('error', err);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user