From 30e9e7168f5632b18511bc781cefeab0970289ad Mon Sep 17 00:00:00 2001 From: Will Miao <13051207myq@gmail.com> Date: Fri, 21 Mar 2025 21:38:02 +0800 Subject: [PATCH] Update logging level for parsed workflow and add refresh button to recipe controls - Changed logging from info to debug for parsed workflow in RecipeRoutes to reduce log verbosity. - Added a refresh button in the recipe controls section of the HTML template to allow users to reload the recipe list easily. --- py/routes/recipe_routes.py | 2 +- templates/recipes.html | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/py/routes/recipe_routes.py b/py/routes/recipe_routes.py index 9365cb96..05a157e3 100644 --- a/py/routes/recipe_routes.py +++ b/py/routes/recipe_routes.py @@ -777,7 +777,7 @@ class RecipeRoutes: # load_extensions=False to avoid loading extensions for now parsed_workflow = parse_workflow(workflow_json, load_extensions=False) - logger.info(f"Parsed workflow: {parsed_workflow}") + logger.debug(f"Parsed workflow: {parsed_workflow}") if not parsed_workflow or not parsed_workflow.get("gen_params"): return web.json_response({"error": "Could not extract generation parameters from workflow"}, status=400) diff --git a/templates/recipes.html b/templates/recipes.html index c32a3f35..766609ca 100644 --- a/templates/recipes.html +++ b/templates/recipes.html @@ -26,6 +26,9 @@
+
+ +