mirror of
https://github.com/thedevs-network/the-guard-bot
synced 2025-08-28 20:57:52 +00:00
15 lines
264 B
JavaScript
15 lines
264 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
|
|
};
|