changeset 3349:81697026ee86

better xmlrpc debugging, show length of raw request data in case of loads exceptions
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Thu, 20 Mar 2008 15:48:01 +0100
parents 9d726e040fda
children bbc4932e0fa7 0ffcad924a92
files MoinMoin/xmlrpc/__init__.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/xmlrpc/__init__.py	Thu Mar 20 15:30:38 2008 +0100
+++ b/MoinMoin/xmlrpc/__init__.py	Thu Mar 20 15:48:01 2008 +0100
@@ -138,6 +138,7 @@
                     params, method = xmlrpclib.loads(data)
                 except:
                     # if anything goes wrong here, we want to see the raw data:
+                    logging.debug("Length of raw data: %d bytes" % len(data))
                     logging.debug(logging_tearline % 'request raw data begin')
                     logging.debug('%r' % data)
                     logging.debug(logging_tearline % 'request raw data end')