fix: unify log format, use placeholders instead of string concatenation (#24544)
This commit is contained in:
parent
bfc4fe1a9a
commit
47f480c0dc
3 changed files with 4 additions and 4 deletions
|
|
@ -570,5 +570,5 @@ class LLMGenerator:
|
|||
error = str(e)
|
||||
return {"error": f"Failed to generate code. Error: {error}"}
|
||||
except Exception as e:
|
||||
logging.exception("Failed to invoke LLM model, model: " + json.dumps(model_config.get("name")), exc_info=e)
|
||||
logging.exception("Failed to invoke LLM model, model: %s", model_config.get("name"), exc_info=e)
|
||||
return {"error": f"An unexpected error occurred: {str(e)}"}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue