Merge pull request #161 from arillo/config/disable-db-logs

disable db logs via config/default.json
This commit is contained in:
banglashi
2021-02-06 00:17:59 +01:00
committed by GitHub
2 changed files with 10 additions and 1 deletions

View File

@@ -45,6 +45,15 @@ To install all node dependencies, run (do this once):
See [config/default.json](config/default.json). Set `storage_local_path` for a local sqlite database or `storage_region`, `storage_bucket`, `storage_cdn` and `storage_endpoint` for AWS S3. `mail_provider` may be one of `console` or `smtp`. Also, omit a trailing `/` for the `endpoint`.
## Disable DB logs
```json
...
"db_logs_disabled": true
...
```
## Configure color swatches
Add a custom array of swatches to your config/default.json.

View File

@@ -19,7 +19,7 @@ const sequelize = new Sequelize(
acquire: 30000,
idle: 10000
},
logging: sequel_log,
logging: config.has('db_logs_disabled') ? false : sequel_log,
// http://docs.sequelizejs.com/manual/tutorial/querying.html#operators
operatorsAliases: false,
// SQLite only