Skip to content

Commit

Permalink
Ensure we do not spam the log in the RpcProxyFactory (#13191)
Browse files Browse the repository at this point in the history
Fixes #13189
  • Loading branch information
martin-fleck-at authored Jan 17, 2024
1 parent 90211ed commit f7b1a78
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions packages/core/src/common/messaging/proxy-factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,14 +168,7 @@ export class RpcProxyFactory<T extends object> implements ProxyHandler<T> {
throw new Error(`no target was set to handle ${method}`);
}
} catch (error) {
const e = this.serializeError(error);
if (e instanceof ResponseError) {
throw e;
}
const reason = e.message || '';
const stack = e.stack || '';
console.error(`Request ${method} failed with error: ${reason}`, stack);
throw e;
throw this.serializeError(error);
}
}

Expand Down

0 comments on commit f7b1a78

Please sign in to comment.