Function to print a log of an exception occurred during a request sent if the debugMode is enabled
: the exception occurred