Mercurial > repos > yating-l > hubarchivecreator
comparison util/Filters.py @ 0:3e0c61b52a06 draft
planemo upload for repository https://github.com/Yating-L/hub-archive-creator commit a77635b40ebd29baafb3bea57f8cbfb3f252e3b0-dirty
author | yating-l |
---|---|
date | Mon, 31 Oct 2016 16:36:25 -0400 |
parents | |
children | 4ca7cbf2d9b8 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:3e0c61b52a06 |
---|---|
1 import logging | |
2 | |
3 class TraceBackFormatter(logging.Formatter): | |
4 def format(self, record): | |
5 # If the log has some Exception text, we don't display them | |
6 s = super(TraceBackFormatter, self).format(record) | |
7 if record.exc_text or record.exc_info: | |
8 s = record.message | |
9 return s |