##// END OF EJS Templates
http-mode: expose tracebacks back to the client.
marcink -
r146:e9421363 default
parent child Browse files
Show More
@@ -20,6 +20,7 b' import locale'
20 20 import logging
21 21 import uuid
22 22 import wsgiref.util
23 import traceback
23 24 from itertools import chain
24 25
25 26 import msgpack
@@ -227,6 +228,8 b' class HTTPApplication(object):'
227 228 try:
228 229 resp = getattr(remote, method)(*args, **kwargs)
229 230 except Exception as e:
231 tb_info = traceback.format_exc()
232
230 233 type_ = e.__class__.__name__
231 234 if type_ not in self.ALLOWED_EXCEPTIONS:
232 235 type_ = None
@@ -235,6 +238,7 b' class HTTPApplication(object):'
235 238 'id': payload.get('id'),
236 239 'error': {
237 240 'message': e.message,
241 'traceback': tb_info,
238 242 'type': type_
239 243 }
240 244 }
General Comments 0
You need to be logged in to leave comments. Login now