Only print JSON object validation message in debug mode

This commit is contained in:
Merwane Hamadi
2023-04-16 14:16:48 -07:00
committed by Pi
parent b50259c25d
commit b5e0127b16

View File

@@ -24,7 +24,7 @@ def validate_json(json_object: object, schema_name: object) -> object:
for error in errors: for error in errors:
logger.error(f"Error: {error.message}") logger.error(f"Error: {error.message}")
else: elif CFG.debug_mode:
print("The JSON object is valid.") print("The JSON object is valid.")
return json_object return json_object