adjust debug output to make it less noisy

This commit is contained in:
Mike McLean 2018-01-28 16:11:11 +01:00
parent 0713d1b7d3
commit 473e397a7b

View file

@ -364,10 +364,13 @@ class RepoManager(object):
self.logger.debug("%s is not a directory, skipping", tagdir)
continue
for repo_id in os.listdir(tagdir):
if repo_id == 'latest':
# ignore latest symlinks
continue
try:
repo_id = int(repo_id)
except ValueError:
self.logger.debug("%s not an int, skipping", tagdir)
self.logger.debug("%s/%s not an int, skipping", tagdir, repo_id)
continue
repodir = "%s/%s" % (tagdir, repo_id)
if not os.path.isdir(repodir):
@ -375,7 +378,6 @@ class RepoManager(object):
continue
if repo_id in self.repos:
#we're already managing it, no need to deal with it here
self.logger.debug("seen %s already, skipping", repodir)
continue
try:
dir_ts = os.stat(repodir).st_mtime