2
0
mirror of https://github.com/thedevs-network/the-guard-bot synced 2025-08-29 05:07:49 +00:00
Thomas Rory Gummerson d20c9e8b57 Logging fix
2017-07-24 15:41:16 +02:00

14 lines
276 B
JavaScript

'use strict';
const { inspect } = require('util');
const logError = log => err =>
log && console.error(`${err.name}: ${err.message}`);
const print = value =>
console.log(inspect(value, { colors: true, depth: null }));
module.exports = {
logError,
print
};