feat: dev flags
This commit is contained in:
@@ -96,5 +96,11 @@ module.exports = {
|
||||
}
|
||||
|
||||
return true
|
||||
},
|
||||
/**
|
||||
* Apply Dev Flags
|
||||
*/
|
||||
async applyFlags() {
|
||||
WIKI.models.knex.client.config.debug = WIKI.config.flags.sqllog
|
||||
}
|
||||
}
|
||||
|
@@ -14,6 +14,7 @@ module.exports = {
|
||||
try {
|
||||
await WIKI.models.onReady
|
||||
await WIKI.configSvc.loadFromDb()
|
||||
await WIKI.configSvc.applyFlags()
|
||||
} catch (err) {
|
||||
WIKI.logger.error('Database Initialization Error: ' + err.message)
|
||||
if (WIKI.IS_DEBUG) {
|
||||
|
Reference in New Issue
Block a user