view util/Filters.py @ 31:9c5d82d3c87e draft

planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit cd459f55fcb828e250986412fb779234ad89b3b2
author yating-l
date Tue, 19 Jun 2018 13:16:08 -0400
parents 7e8a8b732db3
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