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,