ws2mpd/log.js

8 lines
132 B
JavaScript
Raw Normal View History

2019-04-12 19:46:27 +08:00
function log(...args) {
if (!log.enabled) { return; }
console.log(Date.now(), ...args);
}
log.enabled = true;
exports.log = log;