Wire up Gun's logger to winston

This commit is contained in:
Daniel Lugo 2021-09-15 17:41:47 -04:00
parent 7af0ce5bfc
commit 00affe6e15

View file

@ -10,6 +10,11 @@ require('gun/lib/load')
const logger = require('../../config/log') const logger = require('../../config/log')
// @ts-expect-error
Gun.log = (...args) => {
logger.info('Gun log: ', ...args)
}
/** /**
* @param {any} msg * @param {any} msg
*/ */