When I run this code on AWS Lambda nothing gets logged, although when I invoke this locally using serverless (framework), it does log. Is there anything that I am missing?
exports.handler = async () => {
process.on("exit", (code) => {
console.log("process exit code: ", code);
});
};