From: Alek Storm Date: Thu, 22 Sep 2011 02:41:37 +0000 (+0000) Subject: Print only the template trace of the bottommost UI module call, move testing.LogHandl... X-Git-Tag: v2.2.0~71^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d03e60d0aac4afc33862344908e3e3b833747a72;p=thirdparty%2Ftornado.git Print only the template trace of the bottommost UI module call, move testing.LogHandler to util.LogCaptureHandler, and rename testing.LogTestCase to testing.LogCaptureTestCase --- diff --git a/tornado/template.py b/tornado/template.py index bc131fb17..5d8993ba2 100644 --- a/tornado/template.py +++ b/tornado/template.py @@ -239,21 +239,31 @@ class Template(object): try: return execute() except Exception: - error_msg = "\n%s\n\n" - error_args = [_format_code(self.code).rstrip()] - if self.loader: - frames = traceback.extract_tb(sys.exc_info()[2]) - line_number = None - for filename, cur_line_number, function, text in frames: - match = re.match(r"\