<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def log_error(self, callback, error=None):
 """ Log the error that occurred when running the given callback. """

        print("Uncaught error during callback: {}".format(callback))
        print("Error: {}".format(error))