Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: improve the log message in repo finder #533

Merged
merged 1 commit into from
Oct 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/macaron/repo_finder/repo_finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def to_repo_path(purl: PackageURL, available_domains: list[str]) -> str | None:
- The pre-defined repository-based PURL type as defined in
https://github.com/package-url/purl-spec/blob/master/PURL-TYPES.rst
- The supprted git service domains (e.g. ``github.com``) defined in ``available_domains``.
- The supported git service domains (e.g. ``github.com``) defined in ``available_domains``.
The repository path will be generated with the following format ``https://<type>/<namespace>/<name>``.
Expand All @@ -129,7 +129,9 @@ def to_repo_path(purl: PackageURL, available_domains: list[str]) -> str | None:
"""
domain = to_domain_from_known_purl_types(purl.type) or (purl.type if purl.type in available_domains else None)
if not domain:
logger.error("The PURL type of %s is not valid as a repository type.", purl.to_string())
logger.info(
"The PURL type of %s is not valid as a repository type. Trying to find the repository...", purl.to_string()
)
# Try to find the repository
return find_repo(purl)

Expand Down
Loading