mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
Merge pull request #14893 from tcx4c70/fix/log-format-error
fix(tools): not all arguments converted during string formatting
This commit is contained in:
commit
09bbcee391
1 changed files with 2 additions and 2 deletions
|
|
@ -479,7 +479,7 @@ async def get_tool_server_data(token: str, url: str) -> Dict[str, Any]:
|
||||||
"specs": convert_openapi_to_tool_payload(res),
|
"specs": convert_openapi_to_tool_payload(res),
|
||||||
}
|
}
|
||||||
|
|
||||||
log.info("Fetched data:", data)
|
log.info(f"Fetched data: {data}")
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -644,5 +644,5 @@ async def execute_tool_server(
|
||||||
|
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
error = str(err)
|
error = str(err)
|
||||||
log.exception("API Request Error:", error)
|
log.exception(f"API Request Error: {error}")
|
||||||
return {"error": error}
|
return {"error": error}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue