diff --git a/README.md b/README.md index 06121e0..c8f46cf 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/models/db.js b/models/db.js index 03de63d..384058a 100644 --- a/models/db.js +++ b/models/db.js @@ -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