make logging not use f-str, change others to f-str (#22882)
This commit is contained in:
@@ -94,7 +94,7 @@ class AppService:
|
||||
except (ProviderTokenNotInitError, LLMBadRequestError):
|
||||
model_instance = None
|
||||
except Exception as e:
|
||||
logging.exception(f"Get default model instance failed, tenant_id: {tenant_id}")
|
||||
logging.exception("Get default model instance failed, tenant_id: %s", tenant_id)
|
||||
model_instance = None
|
||||
|
||||
if model_instance:
|
||||
|
Reference in New Issue
Block a user