aboutsummaryrefslogtreecommitdiff
path: root/src/api/utils/Log.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/utils/Log.js')
-rw-r--r--src/api/utils/Log.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/api/utils/Log.js b/src/api/utils/Log.js
index 6753f9e..99d11e4 100644
--- a/src/api/utils/Log.js
+++ b/src/api/utils/Log.js
@@ -22,11 +22,10 @@ class Log {
else console.log(chalk.red(args)); // eslint-disable-line no-console
}
- /*
- static dump(args) {
- dump(args);
+ static debug(args) {
+ if (this.checkIfArrayOrObject(args)) dump(args);
+ else console.log(chalk.gray(args)); // eslint-disable-line no-console
}
- */
static checkIfArrayOrObject(thing) {
if (typeof thing === typeof [] || typeof thing === typeof {}) return true;