arabold / serverless-sentry-lib

MIT License
32 stars 15 forks source link

timeRemaining warning/error, memory, shouldn't occur when running lambda locally. #5

Closed teebu closed 6 years ago

teebu commented 6 years ago

I use node-lambda to run my lambdas locally. they don't have lambdaContext.getRemainingTimeInMillis()

The module should check if it exists and if not, not throw the warning/error about time and memory.

arabold commented 6 years ago

Good point. I've never used node-lambda but you're right, it shouldn't give errors if there is no remaining time set.

arabold commented 6 years ago

This has been addressed in node-lambda: https://github.com/motdotla/node-lambda/pull/179/files