<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def __error_callback(self, exception, interval):
 """Execute when there is an error while sending a message. :param exception: Exception which has been thrown while trying to send the message. :param interval: Interval in which the message delivery will be retried. """

        logging.error('Error while publishing {}'.format(
            exception))
        logging.info('Retry in %s seconds.', interval)