Skip to content

Commit

Permalink
WIP: add logs for flaky merge test
Browse files Browse the repository at this point in the history
  • Loading branch information
taratatach committed Jul 24, 2024
1 parent e7672ac commit cdd55c0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions core/merge.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ class Merge {
file.local.updated_at === doc.local.updated_at)
) {
log.debug({ path: doc.path, doc, file }, 'Same local metadata')
// eslint-disable-next-line no-console
console.log('updateFileAsync 1', { side, doc, file })
return
}
}
Expand Down Expand Up @@ -231,6 +233,8 @@ class Merge {
}
return this.save(doc)
} else {
// eslint-disable-next-line no-console
console.log('updateFileAsync 2', { side, doc, file })
return
}
}
Expand Down Expand Up @@ -269,6 +273,8 @@ class Merge {
} else {
// TODO: should we save the new metadata anyway to make sure we
// have up-to-date side infos?
// eslint-disable-next-line no-console
console.log('updateFileAsync 3', { side, doc, file })
return
}
} else {
Expand Down Expand Up @@ -307,6 +313,8 @@ class Merge {
} else {
// TODO: should we save the new metadata anyway to make sure we
// have up-to-date side infos?
// eslint-disable-next-line no-console
console.log('updateFileAsync 4', { side, doc, file })
return
}
}
Expand Down

0 comments on commit cdd55c0

Please sign in to comment.