From 8facd35e9e45953aa7a30bdbff2f7d95a9a17eef Mon Sep 17 00:00:00 2001 From: wangdl Date: Fri, 19 Jun 2026 11:55:26 +0800 Subject: [PATCH] debug: add detailed network error logging to upload flush Co-Authored-By: Claude Opus 4.7 --- .../Features/MaterialReader/ReadingEventUploadQueue.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/AIStudyApp/AIStudyApp/Features/MaterialReader/ReadingEventUploadQueue.swift b/AIStudyApp/AIStudyApp/Features/MaterialReader/ReadingEventUploadQueue.swift index 898e88c..88b9018 100644 --- a/AIStudyApp/AIStudyApp/Features/MaterialReader/ReadingEventUploadQueue.swift +++ b/AIStudyApp/AIStudyApp/Features/MaterialReader/ReadingEventUploadQueue.swift @@ -262,6 +262,8 @@ final class ReadingEventUploadPipeline { print("[UploadPipeline] Flush failed (\(error.statusCode ?? 0)): \(errorCode)") } } catch { + print("[UploadPipeline] Flush error: \(type(of: error)) - \(error.localizedDescription)") + print("[UploadPipeline] Full error: \(error)") queue.markRetry(ids: batch.map(\.id), errorCode: "NETWORK_ERROR") } }