Closed adamwilbert closed 5 years ago
I would expect the request-response to be failing and returning lke "500" or something (not that cloudwatch cares)
If you do this you need to intercept:
const serverless = require('severless-http')
const app = express();
const handle = serverless(app);
module.exports = (event, context) => {
// not sure if this is right, but there's a property on the event
if (event.source === 'warmup') {
return ..
}
return handle(event, context);
}
That's pretty close to perfect, thank you!
I am using scheduled events, in addition to normal http requests served through serverless-http, but I don't seem to have access to logging or anything else when the event fires.
For example:
with an immediate
console.log(req, res, next)
in the handler results in logging through cloudwatch similar toAny thoughts on why that might be?