How to use the info function from tracer
Find comprehensive JavaScript tracer.info code examples handpicked from public code repositorys.
GitHub: Nelderson/MV_Online
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;
64
144
34
+ 5 other calls in file
GitHub: exsilium/xmodem.js
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);
5
11
3
+ 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); }); });
3
9
0
+ 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 {
2
9
4
+ 5 other calls in file
GitHub: CrazyJK/node-sse
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) {
0
0
0
+ 7 other calls in file
tracer.debug is the most popular function in tracer (235 examples)