mirror of
https://github.com/spacedeck/spacedeck-open.git
synced 2025-12-15 17:37:30 +01:00
disable db logs via config/default.json
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user