Skip to content

Commit

Permalink
Update - modified retrieve_variant_logs api router
Browse files Browse the repository at this point in the history
  • Loading branch information
aybruhm committed Dec 11, 2023
1 parent 0ab8b58 commit a0ac49e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agenta-backend/agenta_backend/routers/variants_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ async def retrieve_variant_logs(variant_id: str, request: Request):
app_variant = await db_manager.get_app_variant_instance_by_id(variant_id)
deployment = await db_manager.get_deployment_by_appId(str(app_variant.app.id))
try:
logs_result = logs_manager.retrieve_cloudwatch_logs(deployment.container_name)
logs_result = logs_manager.retrieve_logs(deployment.container_name)
except Exception as exc:
raise HTTPException(500, {"message": str(exc)})
return logs_result

0 comments on commit a0ac49e

Please sign in to comment.