diff --git a/agenta-backend/agenta_backend/routers/variants_router.py b/agenta-backend/agenta_backend/routers/variants_router.py index d579ee1d6e..c8e963702c 100644 --- a/agenta-backend/agenta_backend/routers/variants_router.py +++ b/agenta-backend/agenta_backend/routers/variants_router.py @@ -282,16 +282,10 @@ async def start_variant( 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)) - if os.environ["FEATURE_FLAG"] == "cloud": - try: - logs_result = logs_manager.retrieve_cloudwatch_logs( - deployment.container_name - ) - except Exception as exc: - raise HTTPException(500, {"message": str(exc)}) - return logs_result - - if os.environ["FEATURE_FLAG"] == "ee": - ... - - return "Please specify the required agenta version for retrieving the logs." + try: + logs_result = logs_manager.retrieve_cloudwatch_logs( + deployment.container_name + ) + except Exception as exc: + raise HTTPException(500, {"message": str(exc)}) + return logs_result