Print traceback for unhandled exceptions
[ikiwiki.git] / plugins / proxy.py
index 582010c9af550c87d7f045128efd49e62faacd26..e6635e752404a8d941092f7d3e44d6e983995180 100644 (file)
@@ -171,5 +171,8 @@ class IkiWikiProcedureProxy(object):
                     return
                 time.sleep(LOOP_DELAY)
         except Exception, e:
-            self._debug_fn('uncaught exception: %s' % e)
+            print >>sys.stderr, 'uncaught exception: %s' % e
+            import traceback
+            print >>sys.stderr, traceback.format_exc(sys.exc_info()[2])
+            import posix
             sys.exit(posix.EX_SOFTWARE)