diff --git a/src/forbids/cli/run.py b/src/forbids/cli/run.py index d5c5409..564a588 100644 --- a/src/forbids/cli/run.py +++ b/src/forbids/cli/run.py @@ -20,8 +20,9 @@ logging.Formatter("%(asctime)s,%(msecs)03d %(levelname)-8s [%(filename)s:%(lineno)d] %(message)s") ) else: - logging.basicConfig( - format="%(asctime)s,%(msecs)03d %(levelname)-8s [%(filename)s:%(lineno)d] %(message)s", level=logging.INFO + root_handler = logging.root.handlers[0] + root_handler.setFormatter( + logging.Formatter("%(levelname)-8s %(message)s") ) logging.root.setLevel(logging.INFO) diff --git a/src/forbids/validation.py b/src/forbids/validation.py index 2bd4350..cd2e1c6 100644 --- a/src/forbids/validation.py +++ b/src/forbids/validation.py @@ -134,4 +134,8 @@ def process_validation(layout, subject, session): formatted_message, ) lgr.debug(error) + if no_error: + lgr.info("The dataset was successfully checked as compliant to the protocol.") + else: + lgr.erro("The dataset failed to comply to the protocol.") return no_error