🐛 fix: 修正日志超过 4096 长度的问题

This commit is contained in:
arvinxx
2023-07-30 01:10:06 +08:00
parent 8c0250d29c
commit 6066aff1c2

View File

@@ -15,7 +15,7 @@ export default async function handler(req: Request) {
const data = JSON.parse(args);
const result = await func.runner(data);
console.log(`[${name}]`, args, `result:`, JSON.stringify(result, null, 2));
console.log(`[${name}]`, args, `result:`, JSON.stringify(result, null, 2).slice(0, 3600));
return new Response(JSON.stringify(result));
}