From c70e08a706ecc8c570b053f49bc2f2214400704b Mon Sep 17 00:00:00 2001 From: bennykok Date: Tue, 11 Jun 2024 16:34:07 -0700 Subject: [PATCH] chore(plugin): add log --- custom_routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_routes.py b/custom_routes.py index c1839a5..4e72e52 100644 --- a/custom_routes.py +++ b/custom_routes.py @@ -1026,7 +1026,7 @@ async def upload_file(prompt_id, filename, subfolder=None, content_type="image/p # response = requests.put(ok.get("url"), headers=headers, data=data) async with aiohttp.ClientSession() as session: async with session.put(ok.get("url"), headers=headers, data=data) as response: - logger.info(f"Upload file response {response.status}") + logger.info(f"Upload file response status: {response.status}, status text: {response.reason}") end_time = time.time() # End timing after the request is complete logger.info("Upload time: {:.2f} seconds".format(end_time - start_time))