diff --git a/sources/handlers/DeployHandler.py b/sources/handlers/DeployHandler.py index f3226f9..76bdd29 100644 --- a/sources/handlers/DeployHandler.py +++ b/sources/handlers/DeployHandler.py @@ -4,6 +4,7 @@ """ import requests from flask import current_app +import json import sources.utils.Constants as cst from sources.models.DeployHandlerParam import DeployHandlerParam @@ -39,7 +40,9 @@ def deploy_commit(self, app_context, task_params: DeployHandlerParam): request_payload['environment'] = task_params.env request_payload['ref'] = task_params.commit - current_app.logger.info("deploy_commit: Requesting a deployment:/n" + request_payload + "/n" + request_header) + current_app.logger.info("deploy_commit: Requesting a deployment:/n" + + json.dumps(request_payload) + "/n" + + json.dumps(request_header)) result = requests.post(url=self.godp_deploy_url, headers=request_header, json=request_payload, timeout=3000)