Wire up Gun's logger to winston
This commit is contained in:
parent
7af0ce5bfc
commit
00affe6e15
1 changed files with 5 additions and 0 deletions
|
|
@ -10,6 +10,11 @@ require('gun/lib/load')
|
|||
|
||||
const logger = require('../../config/log')
|
||||
|
||||
// @ts-expect-error
|
||||
Gun.log = (...args) => {
|
||||
logger.info('Gun log: ', ...args)
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {any} msg
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue