(resource, logging=False)
return site
:param resource: A :class:`twisted.web.resource.Resource` object.
    :return: a :class:`Site` that can be run
:param resource: A :class:`twisted.web.resource.Resource` object.
    :return: a :class:`Site` that can be run
: param resource : A : class : twisted . web . resource . Resource object . : return : a : class : Site that can be run
def get_site(resource, logging=False):
    """
    :param resource: A :class:`twisted.web.resource.Resource` object.
    :return: a :class:`Site` that can be run
    """
    site = Site(resource)
    site.displayTracebacks = False
    site.requestFactory = MimicLoggingRequest if logging else MimicRequest
    return site
def get_site ( resource , logging = False ) : site = Site ( resource ) site . displayTracebacks = False site . requestFactory = MimicLoggingRequest if logging else MimicRequest return site