mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user