From 6d898baa2a66beac8dc3e9f9c6474ed538a506d5 Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Thu, 16 Sep 2021 12:24:15 -0400 Subject: [PATCH] Use winston over console.log --- utils/GunSmith/GunSmith.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utils/GunSmith/GunSmith.js b/utils/GunSmith/GunSmith.js index 8587332c..57563137 100644 --- a/utils/GunSmith/GunSmith.js +++ b/utils/GunSmith/GunSmith.js @@ -99,7 +99,7 @@ const handleMsg = msg => { logger.error( `Could not find request for put message from gun subprocess. Data will be logged below.` ) - console.log({ + logger.info({ msg, pendingPut: pendingPut || 'No pending put found', allPendingPuts: pendingPuts @@ -263,8 +263,8 @@ const forge = () => { logger.info('Forged new gun') // currentGun.on('', e => { - // console.log('event from subprocess') - // console.log(e) + // logger.info('event from subprocess') + // logger.info(e) // }) currentGun.on('message', handleMsg)