Mercurial > repos > yating-l > hac
comparison util/Filters.py @ 0:0bca8a6364a7 draft default tip
planemo upload for repository https://github.com/Yating-L/hubarchivecreator-test commit 48b59e91e2dcc2e97735ee35d587960cbfbce932-dirty
| author | yating-l |
|---|---|
| date | Wed, 21 Dec 2016 17:21:18 -0500 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:0bca8a6364a7 |
|---|---|
| 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 |
