@jellybrick/mpris-service
Version:
Node.js implementation for the MPRIS D-Bus Interface Specification to create a mediaplayer service
14 lines (11 loc) • 317 B
JavaScript
const loggingEnabled = (process.env.MPRIS_SERVICE_DEBUG !== undefined && process.env.MPRIS_SERVICE_DEBUG !== '0');
module.exports.debug = function(message) {
if (loggingEnabled) {
console.log(message);
}
};
module.exports.warn = function(message) {
if (loggingEnabled) {
console.warn(message);
}
};