Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bpinsard committed Oct 24, 2024
1 parent f62ae8a commit ea6a4dd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/forbids/cli/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
4 changes: 4 additions & 0 deletions src/forbids/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ea6a4dd

Please sign in to comment.