changeset 5424:f619c99ab12f

print stack for macro exceptions
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 11 Jan 2010 14:02:39 +0100
parents 7d0598a55c09
children 63df8c7b82b2
files MoinMoin/macro/__init__.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/macro/__init__.py	Mon Jan 11 08:59:27 2010 +0100
+++ b/MoinMoin/macro/__init__.py	Mon Jan 11 14:02:39 2010 +0100
@@ -135,6 +135,8 @@
                    'macro_name': self.name,
                    'error_msg': err.args[0], # note: str(err) or unicode(err) does not work for py2.4/5/6
                  })
+            import traceback
+            logging.info("Stack:\n" + traceback.format_stack())
 
     def _m_lang(self, text):
         """ Set the current language for page content.