You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On one of my functions, I forgot to autoload the composer dependencies.
The lambda function when being invoked would start/stop but there would be no error logged to cloudwatch.
When I ran the script on my local machine, I instantly saw the problem (see below)
Question: Is there a way to capture fatal errors in the cloudwatch logs so I'm not forced to go hunting for problems (especially on larger projects)? The issue could be seen instantly in the apache2 error logs, so i'm hoping for something similar here.
Thank you!!! 🙏🙏🙏🙏🙏
PHP Fatal error: Uncaught Error: Class "Bref\Logger\StderrLogger" not found in /Users/erol/Desktop/vagrant-app/linkedinbot/lambdaHandler.php:8
Stack trace:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
On one of my functions, I forgot to autoload the composer dependencies.
Question: Is there a way to capture fatal errors in the cloudwatch logs so I'm not forced to go hunting for problems (especially on larger projects)? The issue could be seen instantly in the apache2 error logs, so i'm hoping for something similar here.
Thank you!!! 🙏🙏🙏🙏🙏
PHP Fatal error: Uncaught Error: Class "Bref\Logger\StderrLogger" not found in /Users/erol/Desktop/vagrant-app/linkedinbot/lambdaHandler.php:8
Stack trace:
Beta Was this translation helpful? Give feedback.
All reactions