'Returns a formatted prefix for logging for the given request.'

def _log_prefix(self, prefix, request):

    cached_guid = (self._cache.get(self.guid_key) or u'without_guid')
    return u"{}    request    '{}    {}    {}'".format(prefix, request.method, request.path, cached_guid)
