diff options
author | Sheogorath | 2019-06-22 16:17:11 +0200 |
---|---|---|
committer | GitHub | 2019-06-22 16:17:11 +0200 |
commit | fd2731042f958a34ff6aea5873275025d33a92e4 (patch) | |
tree | d9d6519bd418419d00bbad6a47e634a14bce9cd0 /lib/models/index.js | |
parent | 8612740f828a25a00df3aa5a16a9f9976f9d4a69 (diff) | |
parent | 63c96e7359fff1cbb6198ac0d684cff0cc675667 (diff) |
Merge pull request #107 from SISheogorath/feature/db-upgrade
Fix sequelize by updating to the latest version
Diffstat (limited to 'lib/models/index.js')
-rw-r--r-- | lib/models/index.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/models/index.js b/lib/models/index.js index 0f27f57d..88c1b168 100644 --- a/lib/models/index.js +++ b/lib/models/index.js @@ -10,7 +10,9 @@ var config = require('../config') var logger = require('../logger') var dbconfig = cloneDeep(config.db) -dbconfig.logging = config.debug ? logger.info : false +dbconfig.logging = config.debug ? (data) => { + logger.info(data) +} : false var sequelize = null |