diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/util/Filters.py	Mon Oct 31 16:36:25 2016 -0400
@@ -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