Skip to content

Commit

Permalink
fix log message for logging validation message correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
InnocentBug committed Mar 9, 2024
1 parent 39a0862 commit c596cd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cript/api/data_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,9 @@ def is_node_schema_valid(self, node_json: str, is_patch: bool = False, force_val
log_message += " ... "

if force_validation:
log_message = "Forced: " + log_message + " if error occur, try setting `cript.API.skip_validation = False` for debugging."
log_message = "Forced: " + log_message + " if error occur, try setting `cript_api.schema.skip_validation = False` for debugging."
else:
log_message += " (Can be disabled by setting `cript.API.skip_validation = True`.)"
log_message += " (Can be disabled by setting `cript_api.schema.skip_validation = True`.)"

self._api.logger.info(log_message)

Expand Down

0 comments on commit c596cd7

Please sign in to comment.