debug: add explicit logging to show crop bounds and rotation values

This commit is contained in:
2026-04-22 09:55:53 +03:00
parent 197dcadfee
commit 92c8517663
2 changed files with 11 additions and 3 deletions

View File

@@ -586,7 +586,9 @@ def _auto_save_photo_from_extraction(
try:
# Process image (crop + rotation + compression + thumbnail)
processor = ImageProcessor()
log.info(f"[AUTO_SAVE] Processing photo: crop_bounds={crop_bounds_validated}, rotation_degrees={rotation_degrees or 0}")
process_result = processor.process_photo(image_bytes, crop_bounds_validated, rotation_degrees=rotation_degrees or 0)
log.info(f"[AUTO_SAVE] Processing result: status={process_result.get('status')}")
if process_result.get('status') != 'success':
error_msg = process_result.get('error', 'Unknown error')