summaryrefslogtreecommitdiff
path: root/morphlib/cachekeycomputer.py
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2012-04-23 18:22:30 +0100
committerRichard Maw <richard.maw@codethink.co.uk>2012-04-23 18:22:30 +0100
commit31edbd6ab1f7d393b4893b8b91a78de78f65d878 (patch)
tree8a64f54ab5c8d2133faf7b058d47313f07c12181 /morphlib/cachekeycomputer.py
parenta1d6fb2de49c912088631166c6f19b1575b1ebeb (diff)
downloadmorph-31edbd6ab1f7d393b4893b8b91a78de78f65d878.tar.gz
cachekeycomputer: log get_cache_id as well
get_cache_id is called recursively, so it would help to log that too
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 f122618f..5a8e9d98 100644
--- a/morphlib/cachekeycomputer.py
+++ b/morphlib/cachekeycomputer.py
@@ -66,6 +66,10 @@ class CacheKeyComputer(object):
self._hash_thing(sha, item)
def get_cache_id(self, artifact):
+ logging.debug('computing cache id for artifact %s from source '
+ 'repo %s, sha1 %s, filename %s' %
+ (artifact.name, artifact.source.repo_name,
+ artifact.source.sha1, artifact.source.filename))
try:
return self._calculated[artifact]
except KeyError: