debug: add detailed network error logging to upload flush

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
wangdl 2026-06-19 11:55:26 +08:00
parent 88babf14f8
commit 8facd35e9e

View File

@ -262,6 +262,8 @@ final class ReadingEventUploadPipeline {
print("[UploadPipeline] Flush failed (\(error.statusCode ?? 0)): \(errorCode)") print("[UploadPipeline] Flush failed (\(error.statusCode ?? 0)): \(errorCode)")
} }
} catch { } catch {
print("[UploadPipeline] Flush error: \(type(of: error)) - \(error.localizedDescription)")
print("[UploadPipeline] Full error: \(error)")
queue.markRetry(ids: batch.map(\.id), errorCode: "NETWORK_ERROR") queue.markRetry(ids: batch.map(\.id), errorCode: "NETWORK_ERROR")
} }
} }