How to use the warn function from pino
Find comprehensive JavaScript pino.warn code examples handpicked from public code repositorys.
GitHub: xyzuniverse/xyzbot
59 60 61 62 63 64 65 66 67 68
if (dir in require.cache) { delete require.cache[dir]; if (fs.existsSync(dir)) logger.info(`re - require plugin '${filename}'`); else { logger.warn(`deleted plugin '${filename}'`); return delete global.plugins[filename]; } } else logger.info(`requiring new plugin '${filename}'`); let err = syntaxerror(fs.readFileSync(dir), filename);
0
0
0
89 90 91 92 93 94 95 96 97 98
} else { value = Number.parseFloat(p.pm2_env.axm_monitor[name].value); } if (Number.isNaN(value)) { logger.warn( 'Ignoring metric name "%s" as value "%s" is not a number', name, value );
0
0
0