aboutsummaryrefslogtreecommitdiff
path: root/vnext/server/db
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/server/db')
-rw-r--r--vnext/server/db/index.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/vnext/server/db/index.js b/vnext/server/db/index.js
index c6c9ca24..9c9e564b 100644
--- a/vnext/server/db/index.js
+++ b/vnext/server/db/index.js
@@ -1,5 +1,10 @@
+import debug from 'debug'
+var log = debug('db')
+
import { Sequelize } from 'sequelize'
-const db = new Sequelize(process.env.DATABASE_URL)
+const db = new Sequelize(process.env.DATABASE_URL, {
+ logging: (...msg) => log(msg)
+})
export default db