code: def log_error(self, callback, error=None):
          
          print("Uncaught error during callback: {}".format(callback))
          print("Error: {}".format(error))
docs: Log the error that occurred when running the given callback.