changeset 1592:26fbd0276b12

merged main
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 26 Sep 2006 23:37:05 +0200
parents 3c59e4f9bf42 (current diff) 4b752a969078 (diff)
children 53bd1632c92a 3a63c9b31d7e
files
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/failure.py	Tue Sep 26 23:35:00 2006 +0200
+++ b/MoinMoin/failure.py	Tue Sep 26 23:37:05 2006 +0200
@@ -136,6 +136,9 @@
     
     Display fancy error view, or fallback to simple text traceback
     """
+    if 'MOIN_DEBUG' in os.environ:
+        raise err
+
     savedError = sys.exc_info()
     logging.error('%s: %s' % (err.__class__.__name__, str(err)), exc_info=savedError)
     try:
--- a/docs/CHANGES	Tue Sep 26 23:35:00 2006 +0200
+++ b/docs/CHANGES	Tue Sep 26 23:37:05 2006 +0200
@@ -160,6 +160,9 @@
       loglevel_file = None # logging.DEBUG/INFO/WARNING/ERROR/CRITICAL
       loglevel_stderr = None # logging.DEBUG/INFO/WARNING/ERROR/CRITICAL
       NOTE: this is NOT in wikiconfig, but e.g. in moin.cgi or moin.py or ...
+    * MOIN_DEBUG can be set in the environment to let MoinMoin ignore exceptions
+      that would lead to a traceback in the browser. Thanks to Raphael Bossek.
+    
 
   New Features:
     * Removed "underscore in URL" == "blank in pagename magic" - it made more