Merge pull request #30675 from overleaf/ar-jpa-log-missing-history-id-docupdater

[document-updater] add additional logging when doc is missing projectHistoryId

GitOrigin-RevId: fba311cb10e0eeeb0a8165ce4e519c7704a7458f
This commit is contained in:
Andrew Rumble
2026-01-15 14:19:11 +00:00
committed by Copybot
parent a0fc14b367
commit 258c6224f4
2 changed files with 14 additions and 0 deletions
@@ -102,6 +102,13 @@ function getDoc(projectId, docId, options = {}, _callback) {
body.ranges = {}
}
if (!body.projectHistoryId) {
logger.warn(
{ projectId, docId },
'projectHistoryId not found for doc from web'
)
}
callback(
null,
body.lines,
@@ -282,6 +282,13 @@ const RedisManager = {
})
}
if (!projectHistoryId) {
logger.warn(
{ docId, projectId },
'projectHistoryId not found for doc in Redis'
)
}
return {
lines: docLines,
version,