diff --git a/buildman/jobutil/buildjob.py b/buildman/jobutil/buildjob.py index e507dab5f..e53b9bcb2 100644 --- a/buildman/jobutil/buildjob.py +++ b/buildman/jobutil/buildjob.py @@ -1,9 +1,12 @@ import json +import logging from cachetools import lru_cache from endpoints.notificationhelper import spawn_notification from data import model +logger = logging.getLogger(__name__) + class BuildJobLoadException(Exception): """ Exception raised if a build job could not be instantiated for some reason. """ @@ -74,6 +77,8 @@ class BuildJob(object): if not cached_tag: cached_tag = self._determine_cached_tag_by_tag() + logger.debug('Determined cached tag %s for %s: %s', cached_tag, base_image_id, cache_comments) + return cached_tag def _determine_cached_tag_by_comments(self, base_image_id, cache_commands):