add logging in db.coffee

This commit is contained in:
Henry Oswald 2018-03-05 16:02:16 +00:00
parent dbb5cb5e44
commit bd0a7c3557

View file

@ -1,6 +1,7 @@
Sequelize = require("sequelize")
Settings = require("settings-sharelatex")
_ = require("underscore")
logger = require "logger-sharelatex"
options = _.extend {logging:false}, Settings.mysql.clsi
@ -32,5 +33,7 @@ module.exports =
]
})
sync: () -> sequelize.sync()
sync: () ->
logger.log dbPath:Settings.mysql.clsi.storage, "syncing db schema"
sequelize.sync()