Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
var frinerva = require('./frinerva');
// .....
} else if (nconf.get('i')) {
frinerva.inform(nconf.get('i'));
}
///.....
function display() {
console.log.apply(this, arguments);
}
function inform(id) {
load(function (err, data) {
var log = JSON.parse(data.toString()),
size = log.length,
i = 0,
entry = null;
for (i = 0; i < size; i += 1) {
entry = log[i];
if ((entry.cmd === 'info') && entry.id && (entry.id == id.toLowerCase())) {
display('[%s][%s]: %s',
entry.id,
entry.cmd,
entry.msg ? entry.msg : '');
}
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.