llrt icon indicating copy to clipboard operation
llrt copied to clipboard

Output of console.log is divided in CloudWatch Logs

Open nabetti1720 opened this issue 1 year ago • 1 comments

Hello, I sometimes write the following code in Lambda to check the contents of an event from API Gateway.

console.log('Received event:', JSON.stringify(event, null, 2));

When this code is executed in node.js, it is displayed collapsed into one line in CloudWatch Logs, but when executed in llrt, it is output divided by line breaks.

node.js: image

llrt: image

I understand that llrt has a different implementation from node.js, but is it possible to improve this?

nabetti1720 avatar Mar 08 '24 14:03 nabetti1720

Yes. This is a bug. Thanks for reporting 👌

richarddavison avatar Mar 08 '24 18:03 richarddavison