summaryrefslogtreecommitdiff
path: root/lib/models/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/models/index.js')
-rw-r--r--lib/models/index.js4
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