Adding stack information to error logs