mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-18 14:34:23 +01:00
Only print JSON object validation message in debug mode
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user