@staticmethod
def log_issue(failure, logger=None):
    """
        Nicely log issue and possibly its URL.

        :param gluetool.glue.Failure failure: ``Failure`` instance describing the exception.
        :param gluetool.log.ContextAdapter logger: logger to use for logging.
        """
    if not logger or not failure:
        return
    logger.error("Submitted as Sentry issue '{}'".format(failure.
        sentry_event_id))
    if failure.sentry_event_url:
        logger.error('See {} for details.'.format(failure.sentry_event_url))
