2
0
mirror of https://github.com/thedevs-network/the-guard-bot synced 2025-08-23 10:28:09 +00:00

14 lines
276 B
JavaScript
Raw Normal View History

2017-07-24 14:44:42 +02:00
'use strict';
2017-07-24 15:06:12 +02:00
const { inspect } = require('util');
2017-07-24 15:41:16 +02:00
const logError = log => err =>
log && console.error(`${err.name}: ${err.message}`);
2017-07-24 14:44:42 +02:00
const print = value =>
console.log(inspect(value, { colors: true, depth: null }));
module.exports = {
logError,
print
};