Skip to content

Commit

Permalink
Log input params earlier to aid debugging (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjgildea authored Jun 29, 2023
1 parent e59525f commit 96218b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dials_rest/routers/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 96218b0

Please sign in to comment.