Skip to content

Commit

Permalink
Extend slow query threshold to reduce logs (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
KOBA789 authored Oct 6, 2023
1 parent 760fe8c commit f6383af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/backend/src/postgres.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ export function createPostgresDataSource(config: Config) {
} : false,
logging: log,
logger: log ? new MyCustomLogger() : undefined,
maxQueryExecutionTime: 300,
maxQueryExecutionTime: 10000, // 10s
entities: entities,
migrations: ['../../migration/*.js'],
});
Expand Down

0 comments on commit f6383af

Please sign in to comment.