change statement time threshold for logging

Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
This commit is contained in:
ゆめ 2024-10-27 15:10:03 -05:00
parent c06809c93e
commit 6c9be945a6
No known key found for this signature in database

View file

@ -248,7 +248,7 @@ export function createPostgresDataSource(config: Config) {
} : false, } : false,
logging: log, logging: log,
logger: log ? new MyCustomLogger() : undefined, logger: log ? new MyCustomLogger() : undefined,
maxQueryExecutionTime: 300, maxQueryExecutionTime: 1000,
entities: entities, entities: entities,
migrations: ['../../migration/*.js'], migrations: ['../../migration/*.js'],
}); });