From e1788d92220bf9160b28361401e1b6cf5a98144b Mon Sep 17 00:00:00 2001 From: Randy Lai Date: Wed, 15 Aug 2018 13:07:53 -0400 Subject: [PATCH] Fix: incorrect log_error call --- github/github.py | 4 ++-- gitlab/gitlab.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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()