mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
add logging in db.coffee
This commit is contained in:
parent
dbb5cb5e44
commit
bd0a7c3557
1 changed files with 4 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
Sequelize = require("sequelize")
|
Sequelize = require("sequelize")
|
||||||
Settings = require("settings-sharelatex")
|
Settings = require("settings-sharelatex")
|
||||||
_ = require("underscore")
|
_ = require("underscore")
|
||||||
|
logger = require "logger-sharelatex"
|
||||||
|
|
||||||
options = _.extend {logging:false}, Settings.mysql.clsi
|
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()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue