Removing a few console.log...

This commit is contained in:
vdv committed 2023-02-12 14:10:56 +01:00
1 parent 5a5931dbcd
commit 4502162a36
4 files changed
+54 -54

No files matched your search

+3 -3
View File
@@ -77,7 +77,7 @@ export const watchDbLegacy = async () => {
globalThis.sync
.on('change', function (info) {
// handle change
console.log({ caller: 'Sync / change', info });
// console.log({ caller: 'Sync / change', info });
if (info.direction === 'push') {
setSyncState({ ...syncState(), lastSeq: info.change.last_seq });
}
@@ -85,12 +85,12 @@ export const watchDbLegacy = async () => {
.on('paused', function (err) {
// replication paused (e.g. replication up to date, user went offline)
setSyncState({ ...syncState(), paused: true });
console.log({ caller: 'Sync / paused', err });
// console.log({ caller: 'Sync / paused', err });
})
.on('active', function () {
// replicate resumed (e.g. new changes replicating, user went back online)
setSyncState({ ...syncState(), paused: false });
console.log({ caller: 'Sync / active' });
// console.log({ caller: 'Sync / active' });
})
.on('denied', function (err) {
// a document failed to replicate (e.g. due to permissions)