From 8fca7f8b11b6828e561622e753512f2ba2e2882f Mon Sep 17 00:00:00 2001 From: Daniel von Atzigen Date: Tue, 15 Oct 2024 10:42:31 +0200 Subject: [PATCH] Add download logging --- api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api.py b/api.py index fd2bb19..22782e1 100644 --- a/api.py +++ b/api.py @@ -62,7 +62,7 @@ def collect( "has_finished": True, "data": result.value, }) - + return JSONResponse(status_code=status.HTTP_200_OK, content={ "has_finished": True, "error": "Internal Server Error", @@ -81,6 +81,7 @@ def process( output_path = os.path.join(tmp_dir, "output.pdf") aws_client = aws.connect(settings) + print(f"Downloading file {settings.s3_input_folder}{payload.file} @ {settings.s3_input_bucket} to {input_path}") aws.load_file( aws_client.bucket(settings.s3_input_bucket), f'{settings.s3_input_folder}{payload.file}',