diff --git a/mkdocs_git_committers_plugin_2/plugin.py b/mkdocs_git_committers_plugin_2/plugin.py index d77ede3..3e3ccf7 100644 --- a/mkdocs_git_committers_plugin_2/plugin.py +++ b/mkdocs_git_committers_plugin_2/plugin.py @@ -107,7 +107,7 @@ def get_contributors_to_file(self, path, submodule_repo=None): # REST endpoint is in the form https://api.github.com/repos/[repository]/commits?path=[uri-encoded-path]&sha=[branch]&per_page=100 url = self.githuburl + "/repos/" + repository + "/commits?path=" + requests.utils.quote(path) + "&sha=" + self.branch + "&per_page=100" authors = [] - LOG.info("git-committers: fetching contributors for " + path) + LOG.debug("git-committers: fetching contributors for " + path) r = requests.get(url=url, headers=self.auth_header) self.last_request_return_code = r.status_code if r.status_code == 200: @@ -169,7 +169,7 @@ def get_contributors_to_file(self, path, submodule_repo=None): if self.auth_header is None: LOG.warning("git-committers: Co-authors exist in commit messages but will not be added, since no GitHub token is provided. Set it under 'token' mkdocs.yml config or MKDOCS_GIT_COMMITTERS_APIKEY environment variable.") else: - LOG.info("git-committers: fetching contributors for " + path + " using GraphQL API") + LOG.debug("git-committers: fetching contributors for " + path + " using GraphQL API") # Query GraphQL API, and get a list of unique authors url = self.githuburl + "/graphql" query = {