Add debug info

This commit is contained in:
jpirnay
2026-04-17 21:44:36 +02:00
parent d9400e269a
commit 0a4dabef45
+3 -1
View File
@@ -520,7 +520,9 @@ KOReaderSyncClient::Error KOReaderSyncClient::getProgress(const std::string& doc
// HTTP 200 with an empty body ("{}"), not by 404. Detect that here so the
// caller doesn't apply a zeroed-out position as if it were real progress.
if (doc["document"].isNull() || doc["progress"].isNull()) {
LOG_DBG("KOSync", "Empty progress payload — treating as not found");
std::string jsonDump;
serializeJson(doc, jsonDump);
LOG_DBG("KOSync", "Empty progress payload — treating as not found | payload=%s", jsonDump.c_str());
return NOT_FOUND;
}