From ab3d5a8ee8fef92b1dee10d22bcce70eec38cef8 Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Sat, 18 Jul 2020 14:59:54 -0400 Subject: [PATCH] compress log size --- services/gunDB/contact-api/events/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/services/gunDB/contact-api/events/index.js b/services/gunDB/contact-api/events/index.js index 3fbaddf8..24f66a0b 100644 --- a/services/gunDB/contact-api/events/index.js +++ b/services/gunDB/contact-api/events/index.js @@ -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 = () => {