mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
feat(api): add log stmt to update_model_record route
This commit is contained in:
parent
7daee41ad2
commit
428f0b265f
@ -88,6 +88,7 @@ async def update_model_record(
|
|||||||
record_store = ApiDependencies.invoker.services.model_records
|
record_store = ApiDependencies.invoker.services.model_records
|
||||||
try:
|
try:
|
||||||
model_response = record_store.update_model(key, config=info)
|
model_response = record_store.update_model(key, config=info)
|
||||||
|
logger.info(f"Updated model: {key}")
|
||||||
except UnknownModelException as e:
|
except UnknownModelException as e:
|
||||||
raise HTTPException(status_code=404, detail=str(e))
|
raise HTTPException(status_code=404, detail=str(e))
|
||||||
except ValueError as e:
|
except ValueError as e:
|
||||||
|
Loading…
Reference in New Issue
Block a user