The XML bodies of request and response can be big. We're using
temp files to write them into the debug logs, and we did that
even when debugging is disabled.
Now we skip that slow code if debugging is disabled. I also unified
logging code for XML response and request.