diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/util/Filters.py	Fri Sep 29 13:32:23 2017 -0400
@@ -0,0 +1,11 @@
+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
+
+    
\ No newline at end of file