Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion shared/logger/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,13 @@ class AggregateLoggerImpl {

sendLogsToService = async (lines: Array<LogLineWithLevelISOTimestamp>) => {
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()
Expand Down