How to use the debug function from npmlog

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

92
93
94
95
96
97
98
99
100
101
(err, res, body) => {
  if (err || !body) {
    return cb(err);
  }

  log.debug('Data for ' + provider.name + ' fetched successfully');

  if (!provider.parseFn) {
    return cb(
      new Error('No parse function for provider ' + provider.name)
fork icon1
star icon0
watch icon3

+ 3 other calls in file

166
167
168
169
170
171
172
173
174
175
if (!txp || txp.status != 'accepted') return;

const walletId = txp.walletId;

if (!processIt) {
  log.debug(
    'Detected broadcast ' +
    data.txid +
    ' of an accepted txp [' +
    txp.id +
fork icon0
star icon0
watch icon1

+ 7 other calls in file