Ability debug log

This commit is contained in:
Nikhil Badyal
2022-12-25 12:55:41 +05:30
parent 1ea1de8086
commit e0afe1596c
+2
View File
@@ -34,6 +34,7 @@ class Downloader(object):
start = perf_counter() start = perf_counter()
headers = {} headers = {}
if self.config.personal_access_token: if self.config.personal_access_token:
logger.debug("Using personal access token")
headers.update( headers.update(
{"Authorization": "token " + self.config.personal_access_token} {"Authorization": "token " + self.config.personal_access_token}
) )
@@ -211,6 +212,7 @@ class Downloader(object):
"Content-Type": "application/vnd.github.v3+json", "Content-Type": "application/vnd.github.v3+json",
} }
if self.config.personal_access_token: if self.config.personal_access_token:
logger.debug("Using personal access token")
headers.update( headers.update(
{"Authorization": "token " + self.config.personal_access_token} {"Authorization": "token " + self.config.personal_access_token}
) )