Skip to content

Commit

Permalink
Fix added logs
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuLamiot committed Nov 9, 2023
1 parent dfa767d commit f374a06
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sources/handlers/DeployHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit f374a06

Please sign in to comment.