Enhance/fix logging in document validator
Change-Id: Ie600986597143f51908005ec655ba78496ca4cd9
This commit is contained in:
parent
b1ae6dee45
commit
1e1fc065b8
@ -118,13 +118,14 @@ class DocumentValidator(metaclass=abc.ABCMeta):
|
|||||||
"""
|
"""
|
||||||
if self.missing_severity not in ["Error", "Warning", "Info"]:
|
if self.missing_severity not in ["Error", "Warning", "Info"]:
|
||||||
LOG.warn("Document Validator for {}, {} does not have a valid "
|
LOG.warn("Document Validator for {}, {} does not have a valid "
|
||||||
"value set for missing_severity. Assuming Error".format(
|
"value set for missing_severity (got {}). "
|
||||||
self.schema, self.doc_name
|
"Assuming Error".format(
|
||||||
|
self.schema, self.doc_name, self.missing_severity
|
||||||
))
|
))
|
||||||
self.missing_severity = "Error"
|
self.missing_severity = "Error"
|
||||||
|
|
||||||
try:
|
try:
|
||||||
LOG.debug("Lookup up document %s: %s from revision %s",
|
LOG.debug("Lookup document %s: %s from revision %s",
|
||||||
self.schema,
|
self.schema,
|
||||||
self.doc_name,
|
self.doc_name,
|
||||||
self.revision)
|
self.revision)
|
||||||
|
Loading…
Reference in New Issue
Block a user