disable db logs via config/default.json

This commit is contained in:
dm
2021-01-21 23:26:08 +01:00
parent fbf18839f9
commit 60667187f3
2 changed files with 7 additions and 1 deletions

View File

@@ -19,7 +19,7 @@ const sequelize = new Sequelize('database', 'username', 'password', {
// SQLite only
storage: config.get('storage_local_db'),
logging: sequel_log,
logging: config.has('db_logs_disabled') ? false : sequel_log,
// http://docs.sequelizejs.com/manual/tutorial/querying.html#operators
operatorsAliases: false