From 31edbd6ab1f7d393b4893b8b91a78de78f65d878 Mon Sep 17 00:00:00 2001 From: Richard Maw Date: Mon, 23 Apr 2012 18:22:30 +0100 Subject: cachekeycomputer: log get_cache_id as well get_cache_id is called recursively, so it would help to log that too --- morphlib/cachekeycomputer.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'morphlib/cachekeycomputer.py') 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: -- cgit v1.2.1