Enhance/fix logging in document validator

Change-Id: Ie600986597143f51908005ec655ba78496ca4cd9
This commit is contained in:
Carter, Matt (mc981n) 2019-09-12 09:10:11 -05:00 committed by Roman Gorshunov
parent b1ae6dee45
commit 1e1fc065b8
1 changed files with 4 additions and 3 deletions

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)