mirror of
https://github.com/spacedeck/spacedeck-open.git
synced 2025-12-15 17:37:30 +01:00
Merge pull request #161 from arillo/config/disable-db-logs
disable db logs via config/default.json
This commit is contained in:
@@ -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`.
|
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
|
## Configure color swatches
|
||||||
|
|
||||||
Add a custom array of swatches to your config/default.json.
|
Add a custom array of swatches to your config/default.json.
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ const sequelize = new Sequelize(
|
|||||||
acquire: 30000,
|
acquire: 30000,
|
||||||
idle: 10000
|
idle: 10000
|
||||||
},
|
},
|
||||||
logging: sequel_log,
|
logging: config.has('db_logs_disabled') ? false : sequel_log,
|
||||||
// http://docs.sequelizejs.com/manual/tutorial/querying.html#operators
|
// http://docs.sequelizejs.com/manual/tutorial/querying.html#operators
|
||||||
operatorsAliases: false,
|
operatorsAliases: false,
|
||||||
// SQLite only
|
// SQLite only
|
||||||
|
|||||||
Reference in New Issue
Block a user