How to use the debug function from pino

Find comprehensive JavaScript pino.debug code examples handpicked from public code repositorys.

258
259
260
261
262
263
264
265
266
267
lookup(serviceName, {family: 4, all: true}, (err, addresses) => {
  if (err) {
    logger.error({err}, `Error looking up ${serviceName}`);
    return;
  }
  logger.debug({addresses, rtpServers}, `dns lookup for ${serviceName} returned`);
  const addrs = addresses.map((a) => a.address);
  if (!equalsIgnoreOrder(addrs, rtpServers)) {
    rtpServers.length = 0;
    Array.prototype.push.apply(rtpServers, addrs);
fork icon12
star icon2
watch icon0

116
117
118
119
120
121
122
123
124
125
  'file': '/' + storage_dir + file.name,
  'md5': md5hex,
  'sha1': sha1hex,
  'sha256': sha256hex
};
log.debug(md5hex);
log.debug(sha1hex);
log.debug(sha256hex);
log.info('/upload (' + req.method + ') uploaded ' + file.name);
return res.send(JSON.stringify(Object.assign({}, checksums), null, 2));
fork icon0
star icon0
watch icon0

+ 5 other calls in file

49
50
51
52
53
54
55
56
57
58
}

return pm2c("list")
  .then((list) => {
    for (const p of list) {
      logger.debug(p, p.exec_interpreter, ">>>>>>");
      const conf = {
        id: p.pm_id,
        name: p.name,
        instance: p.pm2_env.NODE_APP_INSTANCE,
fork icon0
star icon0
watch icon0