We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a76ef0f commit c64a1ddCopy full SHA for c64a1dd
packages/collector/src/agent/loggerToAgentStream.js
@@ -33,7 +33,10 @@ module.exports = {
33
stack = record.err.stack;
34
}
35
36
- downstreamConnection.sendLogToAgent(logLevel, message, stack);
+ // CASE: It could be that the preinit functionality calls the logger before the agent connection is properly set up.
37
+ if (downstreamConnection) {
38
+ downstreamConnection.sendLogToAgent(logLevel, message, stack);
39
+ }
40
},
41
42
/**
0 commit comments