Skip to content

Commit

Permalink
feat(logs): disable logs in prod env (#1203)
Browse files Browse the repository at this point in the history
  • Loading branch information
onyxvd authored Oct 14, 2024
1 parent 67f1c53 commit 9a6a1f8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/config/sequelize.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,12 @@ exports.staging = {

exports.production = {
sequelize: function (api) {
return parseDatabaseUrl(process.env.DATABASE_URL, {
const config = parseDatabaseUrl(process.env.DATABASE_URL, {
autoMigrate: !process.env.DISABLE_AUTO_MIGRATE,
loadFixtures: false
})
if (!process.env.LOG_DB) { config.logging = false }
return config
}
}

Expand Down

0 comments on commit 9a6a1f8

Please sign in to comment.