log Request Info

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

Function 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