Show More
@@ -141,7 +141,7 b' def get_request_metadata(request=None) -' | |||
|
141 | 141 | return request_metadata |
|
142 | 142 | |
|
143 | 143 | |
|
144 | def format_exc(exc_info): | |
|
144 | def format_exc(exc_info, use_detailed_tb=True): | |
|
145 | 145 | exc_type, exc_value, exc_traceback = exc_info |
|
146 | 146 | tb = "++ TRACEBACK ++\n\n" |
|
147 | 147 | tb += "".join(traceback.format_exception(exc_type, exc_value, exc_traceback, None)) |
@@ -163,6 +163,7 b' def format_exc(exc_info):' | |||
|
163 | 163 | # Avoid that remote_tb also appears in the frame |
|
164 | 164 | del remote_tb |
|
165 | 165 | |
|
166 | if use_detailed_tb: | |
|
166 | 167 | locals_tb = get_detailed_tb(exc_info) |
|
167 | 168 | if locals_tb: |
|
168 | 169 | tb += f"\n+++ DETAILS +++\n\n{locals_tb}\n" "" |
General Comments 0
You need to be logged in to leave comments.
Login now