Added a debug statement to dump the request (if debug is enabled)