diff options
author | Paul Sokolovsky <paul.sokolovsky@linaro.org> | 2013-11-15 17:02:55 +0200 |
---|---|---|
committer | Paul Sokolovsky <paul.sokolovsky@linaro.org> | 2013-11-15 17:02:55 +0200 |
commit | 63f871771ce5a5477b5a15906e491bb1d4ae9b90 (patch) | |
tree | 8bf16eb786ff2fb677c7f9e1ae81fc71c61da573 /git-gerrit-mirror | |
parent | 4b0590df3069309b17a07e5ff0dd18f438695cac (diff) |
Improve logging.
Diffstat (limited to 'git-gerrit-mirror')
-rwxr-xr-x | git-gerrit-mirror | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/git-gerrit-mirror b/git-gerrit-mirror index 47f529d..c280aa3 100755 --- a/git-gerrit-mirror +++ b/git-gerrit-mirror @@ -113,6 +113,7 @@ def get_gerrit_projects(gerrit_host): if os.path.exists(cache_file): age = time.time() - os.stat(cache_file).st_mtime if age < 120: + log.debug("Using cached %s", cache_file) f = open(cache_file) projects = [l.strip() for l in f] f.close() @@ -274,6 +275,7 @@ if args[0] == "create": check_args(optparser, args, 1) gerrit_host = conf.get_var(options.dest, "gerrit_host") gerrit_port = conf.get_var(options.dest, "gerrit_port") + log.debug("Getting list of projects in target Gerrit %s:%s" % (gerrit_host, gerrit_port)) existing_projects = get_gerrit_projects("%s:%s" % (gerrit_host, gerrit_port)) for host in conf.get_hosts(options.upstream): log.debug("=== Processing: %s ===", host) |