Better log

This commit is contained in:
Daniel Lugo 2021-09-16 17:08:41 -04:00
parent 5d8f9054f8
commit b77ed72611

View file

@ -473,7 +473,6 @@ function createReplica(path, afterMap = false) {
return this return this
}, },
put(data, cb) { put(data, cb) {
logger.info('put()')
const id = uuid() const id = uuid()
const pendingPutsForPath = pendingPuts[path] || (pendingPuts[path] = []) const pendingPutsForPath = pendingPuts[path] || (pendingPuts[path] = [])
@ -495,6 +494,7 @@ function createReplica(path, afterMap = false) {
type: 'put' type: 'put'
} }
isReady().then(() => { isReady().then(() => {
logger.info(`put() to ${path}`)
currentGun.send(msg) currentGun.send(msg)
}) })
return this return this