[rhmessaging-commits] rhmessaging commits: r3157 - mgmt/trunk/wooly/python/wooly.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Tue Mar 17 13:55:17 EDT 2009


Author: justi9
Date: 2009-03-17 13:55:17 -0400 (Tue, 17 Mar 2009)
New Revision: 3157

Modified:
   mgmt/trunk/wooly/python/wooly/server.py
Log:
Always display a python trace in the event of an app error

Modified: mgmt/trunk/wooly/python/wooly/server.py
===================================================================
--- mgmt/trunk/wooly/python/wooly/server.py	2009-03-17 14:18:28 UTC (rev 3156)
+++ mgmt/trunk/wooly/python/wooly/server.py	2009-03-17 17:55:17 UTC (rev 3157)
@@ -159,15 +159,15 @@
 
         respond("500 Error", session.response_headers)
 
+        writer = Writer()
+        writer.write("APPLICATION ERROR\n")
+        writer.write("\n----- python trace -----\n")
+        print_exc(None, writer)
+
         if session.debug:
-            writer = Writer()
-            writer.write("APPLICATION ERROR\n")
-            writer.write("\n----- python trace -----\n")
-            print_exc(None, writer)
             writer.write("\n----- process trace -----\n")
             session.debug.print_process_calls(writer)
             writer.write("\n----- render trace -----\n")
             session.debug.print_render_calls(writer)
-            return writer.to_string()
-        else:
-            return "APPLICATION ERROR\n"
+
+        return writer.to_string()




More information about the rhmessaging-commits mailing list