Author: croberts
Date: 2012-12-11 18:58:11 +0000 (Tue, 11 Dec 2012)
New Revision: 5579
Modified:
branches/elephant/cumin/python/cumin/main.py
Log:
Throw up a stack trace via log.debug when something goes wrong when loading modules.
Otherwise, debugging this is not as easy.
Modified: branches/elephant/cumin/python/cumin/main.py
===================================================================
--- branches/elephant/cumin/python/cumin/main.py 2012-12-11 18:17:39 UTC (rev 5578)
+++ branches/elephant/cumin/python/cumin/main.py 2012-12-11 18:58:11 UTC (rev 5579)
@@ -167,7 +167,9 @@
m = __import__(name, globals())
m.Module(self, name)
except ImportError:
- pass
+ import traceback
+ message = traceback.format_exc()
+ log.debug("ImportError: %s" % message)
except Exception, e:
import traceback
traceback.print_exc()
Show replies by date