Create an api endpoint and put the below code in it.
Deploy said code.
Call the endpoint.
Watch logs and see Vercel caps at 255 logs per invocation, why!?
for (let i = 0; i < 1000; i++) {
log.debug('same method log count: ', i)
}
Current vs. Expected behavior
Current: caps at 255 logs :(
Expected: not to cap at any number of logs. We run a cron job and it should be listing 1-2k logs, but just gets cut at 255 ðŸ˜
Link to the code that reproduces this issue
https://codesandbox.io/p/devbox/sharp-sara-zvwn7d?file=%2Fapp%2Fapi%2Ftest-logging%2Froute.ts%3A6%2C3
To Reproduce
Current vs. Expected behavior
Current: caps at 255 logs :( Expected: not to cap at any number of logs. We run a cron job and it should be listing 1-2k logs, but just gets cut at 255 ðŸ˜
Provide environment information
Which area(s) are affected? (Select all that apply)
Runtime
Which stage(s) are affected? (Select all that apply)
Vercel (Deployed)
Additional context
No response