Skip to content
This repository was archived by the owner on Mar 19, 2021. It is now read-only.

Commit cc9dcce

Browse files
committed
Add debugging statements
1 parent 771616f commit cc9dcce

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tools/ci/pr_preview.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,8 @@ def detect(host, github_project, target, timeout):
329329
deployment['environment'],
330330
target
331331
)
332-
project.update_deployment(target, deployment, 'pending', message)
332+
result = project.update_deployment(target, deployment, 'pending', message)
333+
logger.info(json.dumps(result, indent=2))
333334

334335
start = time.time()
335336

@@ -341,7 +342,8 @@ def detect(host, github_project, target, timeout):
341342

342343
time.sleep(POLLING_PERIOD)
343344

344-
project.update_deployment(target, deployment, 'success')
345+
result = project.update_deployment(target, deployment, 'success')
346+
logger.info(json.dumps(result, indent=2))
345347

346348
if __name__ == '__main__':
347349
parser = argparse.ArgumentParser()

0 commit comments

Comments
 (0)