log Request Info

private fun logRequestInfo(requestUrl: String, requestPayloadInfo: () -> Unit, response: JSONObject?)

Method to print the details of the request sent if the debugMode is enabled

Parameters

requestUrl

The url of the request

requestPayloadInfo

The payload of the request if sent with the request

response

The response of the request sent