From c0ec03526e30838da9ea061b91f53b2401069e11 Mon Sep 17 00:00:00 2001 From: dddennnisss Date: Fri, 14 Aug 2026 12:12:41 +0700 Subject: [PATCH] =?UTF-8?q?photo=5Fprocessor.py:=20=D0=BB=D0=BE=D0=B3?= =?UTF-8?q?=D0=B3=D0=B8=D1=80=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20=D0=BE?= =?UTF-8?q?=D1=82=D0=B2=D0=B5=D1=82=D0=B0=20API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- photo_bot/photo_processor.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/photo_bot/photo_processor.py b/photo_bot/photo_processor.py index eeb9ea6..77703e1 100644 --- a/photo_bot/photo_processor.py +++ b/photo_bot/photo_processor.py @@ -105,6 +105,8 @@ def _upload_to_api(image_bytes: bytes, user_id: str, coords: tuple) -> dict: verify=False ) response.raise_for_status() + # Логгируем ответ для отладки + logger.info(f"API response status: {response.status_code}, body[:500]: {response.text[:500]}") return response.json() except requests.exceptions.RequestException as e: logger.error(f"Ошибка API: {e}")