Add additional logging around secscan analyze

This commit is contained in:
Joseph Schorr 2017-04-21 16:52:47 -04:00
parent 94ab6cf635
commit f296599162
2 changed files with 5 additions and 0 deletions

View file

@ -64,6 +64,8 @@ class LayerAnalyzer(object):
except AnalyzeLayerException:
# Something went wrong when trying to analyze the layer and we cannot retry, so mark the
# layer as invalid.
logger.exception('Got exception when trying to analyze layer %s via security scanner',
layer.id)
if not set_secscan_status(layer, False, self._target_version):
raise PreemptedException