

def _debug(self, response):
    'Prints or logs a debug message.\n\n        Required Arguments:\n            response: object - the rauth response object.\n\n        Returns:\n            None\n        '
    if self.debug:
        message = '--------------------------------------------------\nURL:    {0}\nMETHOD: {1}\nSTATUS: 2\n\nREQUEST\n{3}\n\nRESPONSE\n{4}\n'.format(response.request.url, response.request.method, response.status_code, response.request.__dict__, response.__dict__)
        if (self.debug == 'print'):
            six.print_(message)
        elif (self.debug == 'log'):
            logging.debug(self)

dataset/ETHPy150Open contextio/Python-ContextIO/contextio/lib/api.py Api._debug/VarMisuse@88/197 `message`->`self`