lambda-local
lambda-local copied to clipboard
[Question] Verbose mode on CLI eats all other logs
When running the lambda-local
CLI in non-verbose mode
./node_modules/.bin/lambda-local -v 0 -l src/handler.js -h handler --watch 8008
only these of the lambda-local
loggings show up in the console when the handler gets hit:
info: Lambda handler listening on http://localhost:8008
info: GET localhost:8008 / -> OK (16 bytes)
But: None of my loggings show up.
Question: is this expected behavior? I expected to only silence the lambda-local
internal loggings.
Further information
handler.js
exports.handler = async function (event, context) {
console.log("Hello?");
return "Hello!";
};
When run without the -v 0
flag my loggings look like this (as expected):
info: Lambda handler listening on http://localhost:8008
info: START RequestId: 1d2ec93f-4447-28da-b8b0-b27301c47a86
Hello?
info: End - Result:
info: Hello!
info: GET localhost:8008 / -> OK (16 bytes)