[track-changes] downgrade consistency errors to warnings GitOrigin-RevId: 6c4b27318fc97eb015de08f99978d1cab8f1da05
@@ -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
}