def job_error_message(self, job, queue, to_be_requeued, exception, trace=None):
        """
        Return the message to log when a job raised an error
        """
        return '[%s|%s|%s] error: %s [%s]' % (queue._cached_name,
                             job.pk.get(),
                             job._cached_identifier,
                             str(exception),
                             'requeued' if to_be_requeued else 'NOT requeued')
Return the message to log when a job raised an error