debug: add detailed error logging with traceback for import failures
All checks were successful
Deploy Development / deploy (push) Successful in 45s
Build Test / lint-backend (push) Successful in 0s
Build Test / build-frontend (push) Successful in 12s

This commit is contained in:
Lars 2026-03-23 16:44:16 +01:00
parent f506a55d7b
commit 4b024e6d0f

View File

@ -377,7 +377,10 @@ async def import_apple_health_baseline(
updated += 1
except Exception as e:
logger.error(f"Error importing row: {e}")
import traceback
error_detail = f"Row error: {str(e)}\nTraceback: {traceback.format_exc()}"
logger.error(error_detail)
print(error_detail) # Force output to Docker logs
errors += 1
return {