view util/Filters.py @ 72:2440ce10848b draft

planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit a60f8496cccf4c5a07ba7d75876198eda997f07d
author yating-l
date Wed, 27 Sep 2017 15:34:20 -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