From b335b4416b2a32278552dea4980af3ec41ab3b7f Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Mon, 12 Nov 2018 16:37:10 +0200 Subject: [PATCH] build_manifest.py: Silence irrelevant logs The group API querries where removed in 2320cfaf but the log was forgotten. The headers print was meant to be just for debugging. --- gitlab/build_manifest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gitlab/build_manifest.py b/gitlab/build_manifest.py index 18343d99a6..21d10d489e 100755 --- a/gitlab/build_manifest.py +++ b/gitlab/build_manifest.py @@ -72,7 +72,7 @@ def request_raw(path: str, headers: Dict[str, str], project_url: str) -> List[Di base_url: str = urlparse(project_url).hostname url: str = f"https://{base_url}/api/v4/{path}" print(f"GET {url}") - print(f"Headers: {headers}") + # print(f"Headers: {headers}") resp = requests.get(url, headers=headers) print(f"Request returned: {resp.status_code}") @@ -94,7 +94,7 @@ def request(path: str) -> List[Dict[str, str]]: try: headers: Dict[str, str] = {'Private-Token': os.environ["READ_PROJECTS_TOKEN"] } except KeyError: - print("Custom token was not set, group api querries will fail") + # print("Custom token was not set, group api querries will fail") # JOB_TOKEN is the default placeholder of CI_JOB_TOKEN headers: Dict[str, str] = {'JOB_TOKEN': "xxxxxxxxxxxxxxxxxxxx" }