Skip to content

Commit ba3b617

Browse files
authored
chore: improve the log message in repo finder (#533)
Signed-off-by: behnazh-w <[email protected]>
1 parent 34801e9 commit ba3b617

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/macaron/repo_finder/repo_finder.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def to_repo_path(purl: PackageURL, available_domains: list[str]) -> str | None:
111111
- The pre-defined repository-based PURL type as defined in
112112
https://github.com/package-url/purl-spec/blob/master/PURL-TYPES.rst
113113
114-
- The supprted git service domains (e.g. ``github.com``) defined in ``available_domains``.
114+
- The supported git service domains (e.g. ``github.com``) defined in ``available_domains``.
115115
116116
The repository path will be generated with the following format ``https://<type>/<namespace>/<name>``.
117117
@@ -129,7 +129,9 @@ def to_repo_path(purl: PackageURL, available_domains: list[str]) -> str | None:
129129
"""
130130
domain = to_domain_from_known_purl_types(purl.type) or (purl.type if purl.type in available_domains else None)
131131
if not domain:
132-
logger.error("The PURL type of %s is not valid as a repository type.", purl.to_string())
132+
logger.info(
133+
"The PURL type of %s is not valid as a repository type. Trying to find the repository...", purl.to_string()
134+
)
133135
# Try to find the repository
134136
return find_repo(purl)
135137

0 commit comments

Comments
 (0)