Includes logging more warning to help debug when things fail.
Change-Id: I25e9afc6b9f413d33368613291e718cf8ccd6335
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
logger.debug("Commit exists: %(commit)s", arguments)
except RequestException as err:
if hasattr(err, 'response') and err.response.status_code in [404]:
logger.debug("Commit exists: %(commit)s", arguments)
except RequestException as err:
if hasattr(err, 'response') and err.response.status_code in [404]:
- logger.warn("Commit %(commit)s for %(project)s:%(branch)s does"
+ logger.warn("Commit %(commit)s for %(project)s does"
" not exist. Not creating branch.", arguments)
" not exist. Not creating branch.", arguments)
else:
logger.error("Error: %s", str(err))
# Skip trying to create the branch
else:
logger.error("Error: %s", str(err))
# Skip trying to create the branch
if hasattr(err, 'response') and err.response.status_code in [412, 409]:
logger.info("Branch %(branch)s already created for %(project)s",
arguments)
if hasattr(err, 'response') and err.response.status_code in [412, 409]:
logger.info("Branch %(branch)s already created for %(project)s",
arguments)
else:
logger.error("Error: %s", str(err))
else:
logger.error("Error: %s", str(err))
-url=https://gerrit.opnfv.org/
+url=https://gerrit.opnfv.org/gerrit/