dougmoscrop / serverless-http

Use your existing middleware framework (e.g. Express, Koa) in AWS Lambda 🎉
Other
1.71k stars 164 forks source link

Double logging since v3.1.1 #280

Open zoellner opened 1 year ago

zoellner commented 1 year ago

This PR in https://github.com/dougmoscrop/serverless-http/pull/263 seems to have had a probably unintended side effect: I am using serverless-http with express and the logger pino-http. Starting at serverless-http@3.1.1 I am seeing all request logs getting logged twice. I added a super minimal demo project here to show the issue: https://github.com/zoellner/serverless-http-pino-bug

Originally posted by @zoellner in https://github.com/dougmoscrop/serverless-http/issues/263#issuecomment-1608239466

shftlvch commented 6 months ago

same issue, thnx @zoellner for troubleshooting, downgraded to 3.1

BTW: can anyone point me out why pino logs request aborted instead of completed?