From 96218b0947f69ac51a23a900f0d01a495ee98500 Mon Sep 17 00:00:00 2001 From: Richard Gildea Date: Thu, 29 Jun 2023 09:53:18 +0100 Subject: [PATCH] Log input params earlier to aid debugging (#20) --- src/dials_rest/routers/image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dials_rest/routers/image.py b/src/dials_rest/routers/image.py index a778d48..37a9af6 100644 --- a/src/dials_rest/routers/image.py +++ b/src/dials_rest/routers/image.py @@ -156,6 +156,7 @@ class ExportBitmapParams(pydantic.BaseModel): async def image_as_bitmap( params: Annotated[ExportBitmapParams, Body(examples=image_as_bitmap_examples)] ) -> Response: + logger.info(f"Exporting bitmap with parameters:\n{params!r}") try: if "#" in params.filename.stem: # A filename template e.g. image_#####.cbf @@ -197,7 +198,6 @@ async def image_as_bitmap( detail=str(e), ) - logger.info(f"Exporting bitmap with parameters:\n{params!r}") flex_img = next( export_bitmaps.imageset_as_flex_image( expt.imageset,