Functions Log cutting off output

answered
#1

I’m having a hard time debugging in the Netlify Functions Log. Over and over again it seems like there’s a character limit on the output and so a lot of the outputted log information appears to get cut off. Is this normal behavior?
Thanks

#2

hi there @songfarm-david I’m going to move this post to our #functions category as it is a better fit there. :slight_smile:

#3

There is a character limit on loglines - something around 4096 characters apiece if I recall correctly.
. You’ll want to make sure your lines are shorter than that (you can log as many as you want :))

1 Like
#4

In my practical experience, I am usually logging event.body (because I am curious like that :stuck_out_tongue: ) from the Netlify Lambda functions handler method: exports.handler = function(event, context, callback) { console.log(event.body)}. That must be larger than 4000 chars? Thanks.