view util/Filters.py @ 75:558c82d3d322 draft

Uploaded
author yating-l
date Wed, 27 Sep 2017 16:24:14 -0400
parents 4ca7cbf2d9b8
children
line wrap: on
line source

import logging

class TraceBackFormatter(logging.Formatter):
    def format(self, record):
        # If the log has some Exception text, we don't display them
        s = super(TraceBackFormatter, self).format(record)
        if record.exc_text or record.exc_info:
            s = record.message
        return s