mirror of
https://github.com/OMGeeky/gpt-pilot.git
synced 2026-01-05 10:50:21 +01:00
logger.warn() is deprecated
This commit is contained in:
@@ -162,7 +162,7 @@ def retry_on_exception(func):
|
||||
args[0]['function_buffer'] = e.doc
|
||||
continue
|
||||
elif isinstance(e, ValidationError):
|
||||
logger.warn('Received invalid JSON response from LLM. Asking to retry...')
|
||||
logger.warning('Received invalid JSON response from LLM. Asking to retry...')
|
||||
logger.info(f' at {e.json_path} {e.message}')
|
||||
# eg:
|
||||
# json_path: '$.type'
|
||||
|
||||
Reference in New Issue
Block a user