def raise_500(instance, msg=None):
    instance.response.status = 500
    if msg:
        instance.response.body_raw = {'error': msg}
    raise ResponseException(instance.response)
Log each of the given lines as a separate message.
dataset/ETHPy150Open pneff/wsgiservice/wsgiservice/status.py/raise_500--crossover with--dataset/ETHPy150Open twisted/twisted/twisted/logger/_io.py/LoggingFile.writelines