Returning exception stack trace in SimpleXMLRPCServer response

Oct. 4, 2007
2:34 p.m.
Hi, When an exception occurs in a function, SimpleXMLRPCServer currently sends exception type and value back to the client (in <faultString>) . So the client sees some thing like: "'<type \'exceptions.ValueError\'>:invalid literal for int() with base 10" This string is constructed in _marshaled_dispatch() as ""%s:%s" % (exc_type, exc_value)". How about adding the stack traceback to this string? I found it very useful to have the server side traceback in case of failures. I will come up with a patch if there is any interest. Some thing similar has been done in case of internal server errors (in r57158). Thanks, Raghu
6430
Age (days ago)
6430
Last active (days ago)
0 comments
1 participants
participants (1)
-
Raghuram Devarakonda