Logging the entire body will cause too much debug output. If it's useful to capture the entire request then I suggest to add a "set_trace()" debugging API that accepts a file name or file object. If set then it can write the entire request and response to the file.