debug: add detailed error logging with traceback for import failures
This commit is contained in:
1 parent
f506a55d7b
commit
4b024e6d0f
1 file changed
+4
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user