chore(lint): Use logging.exception instead of logging.error (#10415)

This commit is contained in:
Bowen Liang
2024-11-07 21:13:02 +08:00
committed by GitHub
parent dd5ffaf058
commit 574c4a264f
22 changed files with 31 additions and 30 deletions

View File

@@ -193,7 +193,7 @@ class ApiToolManageService:
# try to parse schema, avoid SSRF attack
ApiToolManageService.parser_api_schema(schema)
except Exception as e:
logger.error(f"parse api schema error: {str(e)}")
logger.exception(f"parse api schema error: {str(e)}")
raise ValueError("invalid schema, please check the url you provided")
return {"schema": schema}