compress log size

This commit is contained in:
Daniel Lugo 2020-07-18 14:59:54 -04:00
parent 8a647dd380
commit ab3d5a8ee8

View file

@ -329,7 +329,11 @@ const getCurrentOutgoings = () => currentOutgoings
const outgoingsListeners = new Set()
outgoingsListeners.add(o => {
logger.info(`new outgoings: ${JSON.stringify(o, null, 4)}`)
const values = Object.values(o)
const nulls = values.filter(x => x === null).length
const nonNulls = values.length - nulls
logger.info(`new outgoings, ${nulls} nulls and ${nonNulls} nonNulls`)
})
const notifyOutgoingsListeners = () => {