Skip to content

Commit

Permalink
Move cache logging to debug
Browse files Browse the repository at this point in the history
Can get a tad noisy with several tasks all using setting up multiple caches.

Testing Done: https://travis-ci.org/pantsbuild/pants/builds/40392152

Bugs closed: 783

Reviewed at https://rbcommons.com/s/twitter/r/1310/
  • Loading branch information
dt committed Nov 9, 2014
1 parent 3e04581 commit 205dbd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/python/pants/cache/cache_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def is_remote(spec):
if isinstance(spec, basestring):
if spec.startswith('/') or spec.startswith('~'):
path = os.path.join(spec, task_name)
log.info('{0} {1} local artifact cache at {2}'.format(task_name, action, path))
log.debug('{0} {1} local artifact cache at {2}'.format(task_name, action, path))
return LocalArtifactCache(artifact_root, path, compression)
elif is_remote(spec):
# Caches are supposed to be close, and we don't want to waste time pinging on no-op builds.
Expand All @@ -85,7 +85,7 @@ def is_remote(spec):
best_url = select_best_url(spec, pinger, log)
if best_url:
url = best_url.rstrip('/') + '/' + task_name
log.info('{0} {1} remote artifact cache at {2}'.format(task_name, action, url))
log.debug('{0} {1} remote artifact cache at {2}'.format(task_name, action, url))
local = local or TempLocalArtifactCache(artifact_root)
return RESTfulArtifactCache(artifact_root, url, local)
else:
Expand Down

0 comments on commit 205dbd9

Please sign in to comment.