Rahul wants to log the errors within the program to a separate file so that he can review them later. He has created the log_error() function which takes in the error variable e and logs it within the system.
Make changes to the following program, so that Rahul can capture the error details for each error and pass them to log_error().