From 6cb1212da638aefdffaa072750affa1c75200226 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Mon, 9 Feb 2015 13:54:14 -0500 Subject: [PATCH] Add logging --- buildman/jobutil/buildjob.py | 5 +++++ 1 file changed, 5 insertions(+) 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):