diff --git a/github/github.py b/github/github.py index e526ecb81..c060d1ba5 100644 --- a/github/github.py +++ b/github/github.py @@ -49,7 +49,7 @@ def remote_to_url(remote): elif remote.startswith("http"): return remote else: - util.log_error('Cannot parse remote "%s" to url' % remote) + util.debug.log_error('Cannot parse remote "%s" to url' % remote) return None @@ -66,7 +66,7 @@ def parse_remote(remote): match = re.match(r"https?://([a-zA-Z-\.0-9]+)/([a-zA-Z-\._0-9]+)/([a-zA-Z-\._0-9]+)/?", url) if not match: - util.log_error('Invalid github url: %s' % url) + util.debug.log_error('Invalid github url: %s' % url) return None fqdn, owner, repo = match.groups() diff --git a/gitlab/gitlab.py b/gitlab/gitlab.py index e5e10d41e..cc7d384a0 100644 --- a/gitlab/gitlab.py +++ b/gitlab/gitlab.py @@ -68,7 +68,7 @@ def parse_remote(remote): match = re.match(r"https?://([a-zA-Z-\.0-9]+)/([a-zA-Z-\._0-9]+)/([a-zA-Z-\._0-9]+)/?", url) if not match: - util.log_error('Invalid gitlab url: %s' % url) + util.debug.log_error('Invalid gitlab url: %s' % url) return None fqdn, owner, repo = match.groups()