Extend slow query threshold to reduce logs (MisskeyIO#171)

This commit is contained in:
KOBA789 2023-10-06 21:49:35 +09:00 committed by GitHub
parent 760fe8cfcc
commit f6383afe46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -240,7 +240,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: 10000, // 10s
entities: entities, entities: entities,
migrations: ['../../migration/*.js'], migrations: ['../../migration/*.js'],
}); });