mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-25 02:00:10 +02:00
Merge pull request #5978 from overleaf/bg-downgrade-errors-in-track-changes
[track-changes] downgrade consistency errors to warnings GitOrigin-RevId: 6c4b27318fc97eb015de08f99978d1cab8f1da05
This commit is contained in:
@@ -36,7 +36,7 @@ module.exports = DiffGenerator = {
|
||||
if (e instanceof ConsistencyError && (i = update.op.length - 1)) {
|
||||
// catch known case where the last op in an array has been
|
||||
// merged into a later op
|
||||
logger.error(
|
||||
logger.warn(
|
||||
{ err: e, update, op: JSON.stringify(op) },
|
||||
'marking op as broken'
|
||||
)
|
||||
|
||||
@@ -85,7 +85,7 @@ async function rewindDoc(projectId, docId, zipfile) {
|
||||
v = update.v
|
||||
} catch (e) {
|
||||
e.attempted_update = update // keep a record of the attempted update
|
||||
logger.error({ projectId, docId, err: e }, 'rewind error')
|
||||
logger.warn({ projectId, docId, err: e }, 'rewind error')
|
||||
break // stop attempting to rewind on error
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user