Mercurial > repos > yating-l > hubarchivecreatortest
comparison util/Filters.py @ 1:85195e0d4b71 draft
planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit b1ae7349f118a0fe7923d765020dfc684cf84116-dirty
| author | yating-l |
|---|---|
| date | Fri, 29 Sep 2017 13:32:23 -0400 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 0:f9ccc5ad1713 | 1:85195e0d4b71 |
|---|---|
| 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 | |
| 10 | |
| 11 |
