Skip to content

Commit 8917798

Browse files
committed
differntiate between HDF5 and template validation in the case of missing custom attribute
1 parent bad7dee commit 8917798

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/pynxtools/dataconverter/helpers.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,9 @@ def _log(self, path: str, log_type: ValidationProblem, value: Optional[Any], *ar
172172
)
173173
if args[1] is True:
174174
log_text += " It was added here automatically."
175-
logger.info(log_text)
175+
logger.info(log_text)
176+
else:
177+
logger.warning(log_text)
176178
elif log_type == ValidationProblem.MissingRequiredGroup:
177179
logger.warning(f"The required group {path} hasn't been supplied.")
178180
elif log_type == ValidationProblem.MissingRequiredField:

0 commit comments

Comments
 (0)