Skip to content

Commit 6739a61

Browse files
fix: console.log executed from Lambda
1 parent c0051f1 commit 6739a61

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/nodeWorker.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -107,16 +107,10 @@ function startWorker(input: WorkerRequest) {
107107
);
108108

109109
worker.stdout.on('data', (data: Buffer) => {
110-
Logger.verbose(
111-
`[Function ${input.functionId}] [Worker ${input.workerId}] `,
112-
data.toString(),
113-
);
110+
Logger.log(`[Function ${input.functionId}]`, data.toString());
114111
});
115112
worker.stderr.on('data', (data: Buffer) => {
116-
Logger.verbose(
117-
`[Function ${input.functionId}] [Worker ${input.workerId}] `,
118-
data.toString(),
119-
);
113+
Logger.log(`[Function ${input.functionId}]`, data.toString());
120114
});
121115
worker.on('exit', () => {
122116
Logger.verbose(

0 commit comments

Comments
 (0)