aboutsummaryrefslogtreecommitdiff
path: root/src/api/utils/Log.js
diff options
context:
space:
mode:
authorZephyrrus <[email protected]>2020-07-10 01:17:00 +0300
committerGitHub <[email protected]>2020-07-10 01:17:00 +0300
commita721681944e9eb06742e5b3f71c71aed9c1c117d (patch)
tree93ff9fd13a0434d91fb1ae7ca0da48d6929c4d00 /src/api/utils/Log.js
parentfeat: backend pagination for albums (diff)
parentrefactor: finish refactoring all the components to use vuex (diff)
downloadhost.fuwn.me-a721681944e9eb06742e5b3f71c71aed9c1c117d.tar.xz
host.fuwn.me-a721681944e9eb06742e5b3f71c71aed9c1c117d.zip
Merge pull request #1 from Zephyrrus/feature/store_refactor
Feature/store refactor
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;