disable db logging
This commit is contained in:
parent
e36be24ae4
commit
602f1b002c
1 changed files with 6 additions and 5 deletions
|
|
@ -8,11 +8,12 @@ const sequelize = new Sequelize({
|
|||
port: parseInt(process.env.PGPORT || '5432', 10),
|
||||
database: process.env.PGDATABASE,
|
||||
benchmark: true,
|
||||
logging: (sql, timingMs) => {
|
||||
if (typeof timingMs === 'number' && timingMs > 1000) {
|
||||
console.warn(`[slow sql] ${timingMs}ms`, sql);
|
||||
}
|
||||
},
|
||||
// logging: (sql, timingMs) => {
|
||||
// if (typeof timingMs === 'number' && timingMs > 1000) {
|
||||
// console.warn(`[slow sql] ${timingMs}ms`, sql);
|
||||
// }
|
||||
// },
|
||||
logging: false,
|
||||
pool: {
|
||||
max: 80,
|
||||
min: 0,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue