How to use the info function from tracer

Find comprehensive JavaScript tracer.info code examples handpicked from public code repositorys.

83
84
85
86
87
88
89
90
91
92
  }
}

io.clients(function(error, clients){
  if (error) throw error;
  log.info("There are " + clients.length + " players connected");
});

socket.on('disconnect',function(data){
  loggedInUsers[username] = null;
fork icon64
star icon144
watch icon34

+ 5 other calls in file

196
197
198
199
200
201
202
203
204
205
if (blockNumber === packagedBuffer.length && sent_eof) {
  log.info('[SEND] - Resending EOT, because receiver responded with NAK.');
  _self.emit('status', { action: 'send', signal: 'EOT' });
  socket.write(new Buffer([EOT]));
} else {
  log.info('[SEND] - Packet corruption detected, resending previous block.');
  _self.emit('status', { action: 'recv', signal: 'NAK' });
  blockNumber--;
  if(packagedBuffer.length > blockNumber) {
    sendBlock(socket, blockNumber, packagedBuffer[blockNumber], _self.XMODEM_OP_MODE);
fork icon5
star icon11
watch icon3

+ 23 other calls in file

113
114
115
116
117
118
119
120
121
122
    })

    normEvents = normEvents.filter(hasLocation);
    logger.info('Found ' + normEvents.length + ' ics events in total');
    normEvents = normEvents.filter(isInFuture);
    logger.info('Found ' + normEvents.length + ' ics future events in SG with location');

    resolve(normEvents);
  });
});
fork icon3
star icon9
watch icon0

+ 3 other calls in file

49
50
51
52
53
54
55
56
57
58
Client.prototype.set_reducefn = function (command, reducefn) {
    this.reducefn = superJson.create().parse(reducefn);
};

Client.prototype.call_mapfn = function (command, data) {
    logger.info("Mapping %s", data[0].toString());
    var results = {};
    var result = generator(this.mapfn, data[0], data[1]);
    result = result();
    try {
fork icon2
star icon9
watch icon4

+ 5 other calls in file

112
113
114
115
116
117
118
119
120
121
122
 * @param {*} req request
 * @param {*} res response
 * @param {*} next
 */
const receive = (req, res, next) => {
  log.info('receive', 'headers', req.headers, 'body', req.body);


  const reqBody = req.body;
  const reqBodyKeys = Object.keys(reqBody);
  if (reqBodyKeys.length === 0 && reqBody.constructor === Object) {
fork icon0
star icon0
watch icon0

+ 7 other calls in file