from .cfg_app import PpCfgAppError, PpConfigApplication
-__version__ = '0.2.0'
+__version__ = '0.2.1'
LOG = logging.getLogger(__name__)
_LIBRARY_NAME = "pp-pdns-api-client"
if self.verbose > 1:
LOG.debug("executing pre_run() ...")
+ LOG.debug("Setting Loglevel of the requests module to WARNING")
+ logging.getLogger("requests").setLevel(logging.WARNING)
+
super(PpPDNSApplication, self).pre_run()
# -------------------------------------------------------------------------
try:
if not response.ok:
+ LOG.debug
err = response.json()
- code = err['httpStatus']
- msg = err['messages']
+ code = response.status_code
+ msg = err['error']
if response.status_code == 401:
raise PDNSApiNotAuthorizedError(code, msg, url)
if response.status_code == 404: