Browse Source

Enhance/fix logging in document validator

Change-Id: Ie600986597143f51908005ec655ba78496ca4cd9
changes/58/681758/2
Carter, Matt (mc981n) 2 years ago
committed by Roman Gorshunov
parent
commit
1e1fc065b8
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      src/bin/shipyard_airflow/shipyard_airflow/common/document_validators/document_validator.py

+ 4
- 3
src/bin/shipyard_airflow/shipyard_airflow/common/document_validators/document_validator.py View File

@ -118,13 +118,14 @@ class DocumentValidator(metaclass=abc.ABCMeta):
"""
if self.missing_severity not in ["Error", "Warning", "Info"]:
LOG.warn("Document Validator for {}, {} does not have a valid "
"value set for missing_severity. Assuming Error".format(
self.schema, self.doc_name
"value set for missing_severity (got {}). "
"Assuming Error".format(
self.schema, self.doc_name, self.missing_severity
))
self.missing_severity = "Error"
try:
LOG.debug("Lookup up document %s: %s from revision %s",
LOG.debug("Lookup document %s: %s from revision %s",
self.schema,
self.doc_name,
self.revision)


Loading…
Cancel
Save