summaryrefslogtreecommitdiff
path: root/morphlib/cachekeycomputer.py
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-04-23 17:22:45 +0100
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-04-23 17:22:45 +0100
commitb43531b9979681b05bfdc6b573f4b6e74ead2cfa (patch)
tree536eda469942c64f5ba612c015d8e8d3b30fca8d /morphlib/cachekeycomputer.py
parenta28544e14659ac6761e46d597933526eb472e7b6 (diff)
downloadmorph-b43531b9979681b05bfdc6b573f4b6e74ead2cfa.tar.gz
Add more logging to cache key computation
Diffstat (limited to 'morphlib/cachekeycomputer.py')
-rw-r--r--morphlib/cachekeycomputer.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/morphlib/cachekeycomputer.py b/morphlib/cachekeycomputer.py
index 28406b55..f9c93b9f 100644
--- a/morphlib/cachekeycomputer.py
+++ b/morphlib/cachekeycomputer.py
@@ -31,6 +31,10 @@ class CacheKeyComputer(object):
"BOOTSTRAP", "CFLAGS")])
def compute_key(self, artifact):
+ logging.debug('computing cache key for artifact %s from source '
+ 'repo %s, sha1 %s, filename %s' %
+ (artifact.name, artifact.source.repo_name,
+ artifact.source.sha1, artifact.source.filename))
return self._hash_id(self.get_cache_id(artifact))
def _hash_id(self, cache_id):