diff --git a/shared/logger/index.tsx b/shared/logger/index.tsx index 074a79483655..2ec57274e58e 100644 --- a/shared/logger/index.tsx +++ b/shared/logger/index.tsx @@ -109,8 +109,13 @@ class AggregateLoggerImpl { sendLogsToService = async (lines: Array) => { if (!isMobile) { - // don't want main node thread making these calls + // don't want main node thread making these calls — the node engine's + // NativeTransport forwards responses to the renderer without processing + // them locally, so RPCs sent from node never get responses. try { + if (typeof process !== 'undefined' && process.type !== 'renderer') { + return await Promise.resolve() + } const {hasEngine} = require('../engine/require') as {hasEngine: typeof HasEngineType} if (!hasEngine()) { return await Promise.resolve()