Mercurial > repos > yating-l > hubarchivecreator
diff util/Filters.py @ 0:f493979f1408 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 12:13:04 -0500 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/util/Filters.py Wed Dec 21 12:13:04 2016 -0500 @@ -0,0 +1,9 @@ +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