Skip to content

Commit b317069

Browse files
authored
Merge pull request #648 from FAIRmat-NFDI/no-log-error-for-missing-concepts
do not log error for missing concepts
2 parents fab147d + 87ed6fd commit b317069

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pynxtools/dataconverter/helpers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ def _log(self, path: str, log_type: ValidationProblem, value: Optional[Any], *ar
9898
f"The value at {path} does not match with the enumerated items from the open enumeration: {value}."
9999
)
100100
elif log_type == ValidationProblem.MissingRequiredGroup:
101-
logger.error(f"The required group, {path}, hasn't been supplied.")
101+
logger.warning(f"The required group, {path}, hasn't been supplied.")
102102
elif log_type == ValidationProblem.MissingRequiredField:
103-
logger.error(
103+
logger.warning(
104104
f"The data entry corresponding to {path} is required "
105105
"and hasn't been supplied by the reader.",
106106
)

0 commit comments

Comments
 (0)