diff util/Filters.py @ 0:abcfd662b679 draft default tip

planemo upload for repository https://github.com/Yating-L/hubarchivecreator-test.git commit 199ae2b10f3b3e58cb4d4a3b9fb4b35db415c538-dirty
author yating-l
date Thu, 22 Dec 2016 17:53:00 -0500
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/util/Filters.py	Thu Dec 22 17:53:00 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