diff options
| author | Zephyrrus <[email protected]> | 2020-07-08 02:32:12 +0300 |
|---|---|---|
| committer | Zephyrrus <[email protected]> | 2020-07-08 02:32:12 +0300 |
| commit | eccbb1ca93f1b86e9bc93dcbc1ec0ee9b168d949 (patch) | |
| tree | df24e25d570213cc0e10822cc74dc444bc55243b /src/api/utils/Log.js | |
| parent | feat: refactor waterfall to be more efficient (diff) | |
| download | host.fuwn.me-eccbb1ca93f1b86e9bc93dcbc1ec0ee9b168d949.tar.xz host.fuwn.me-eccbb1ca93f1b86e9bc93dcbc1ec0ee9b168d949.zip | |
fix: errors in Util caused by separating into different classes improperly
Diffstat (limited to 'src/api/utils/Log.js')
| -rw-r--r-- | src/api/utils/Log.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/api/utils/Log.js b/src/api/utils/Log.js index 6753f9e..8b38c2b 100644 --- a/src/api/utils/Log.js +++ b/src/api/utils/Log.js @@ -22,6 +22,11 @@ class Log { else console.log(chalk.red(args)); // eslint-disable-line no-console } + static debug(args) { + if (this.checkIfArrayOrObject(args)) dump(args); + else console.log(chalk.gray(args)); // eslint-disable-line no-console + } + /* static dump(args) { dump(args); |