-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Labels
bugSomething isn't workingSomething isn't working
Description
What versions are running?
latest
What steps can reproduce the bug?
logger should not read formData, because this field are implemented by async/await(Promise),if Promise full filled, it's can‘t be use again,it will throw already used by elysia when user want read things form formData.
export const app = new Elysia()
// .use(
// logger({
// level: 'info',
// })
// )
.use(staticPlugin())
.use(trafficControl())
.use(useFileRoute(path.join(__dirname, 'api')));
// in a post handler
const formData = await ctx.request.formData();
console.log('dta',formData); // will never print this, if not comment use logger in app entryWhat is the expected behavior?
No response
What do you see instead?
No response
Additional information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working