Added logging debug in rc-api and api_client.py