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

@@ -45,6 +45,12 @@ 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
```
# Run (web server)
node spacedeck.js

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