Add logging
This commit is contained in:
parent
4310f47dee
commit
6cb1212da6
1 changed files with 5 additions and 0 deletions
|
@ -1,9 +1,12 @@
|
||||||
import json
|
import json
|
||||||
|
import logging
|
||||||
|
|
||||||
from cachetools import lru_cache
|
from cachetools import lru_cache
|
||||||
from endpoints.notificationhelper import spawn_notification
|
from endpoints.notificationhelper import spawn_notification
|
||||||
from data import model
|
from data import model
|
||||||
|
|
||||||
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class BuildJobLoadException(Exception):
|
class BuildJobLoadException(Exception):
|
||||||
""" Exception raised if a build job could not be instantiated for some reason. """
|
""" Exception raised if a build job could not be instantiated for some reason. """
|
||||||
|
@ -74,6 +77,8 @@ class BuildJob(object):
|
||||||
if not cached_tag:
|
if not cached_tag:
|
||||||
cached_tag = self._determine_cached_tag_by_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
|
return cached_tag
|
||||||
|
|
||||||
def _determine_cached_tag_by_comments(self, base_image_id, cache_commands):
|
def _determine_cached_tag_by_comments(self, base_image_id, cache_commands):
|
||||||
|
|
Reference in a new issue