don't log metrics for postgres in testing
Some checks failed
Lint / lint (misskey-js) (push) Blocked by required conditions
Lint / lint (misskey-reversi) (push) Blocked by required conditions
Lint / lint (sw) (push) Blocked by required conditions
Lint / typecheck (backend) (push) Blocked by required conditions
Lint / typecheck (misskey-js) (push) Blocked by required conditions
Lint / typecheck (sw) (push) Blocked by required conditions
Lint / pnpm_install (push) Successful in 2m0s
Test (backend) / e2e (22.11.0) (push) Failing after 1m57s
Publish Docker image / Build (push) Successful in 5m10s
Test (production install and build) / production (22.11.0) (push) Successful in 1m22s
Lint / pnpm_install (pull_request) Successful in 1m39s
Publish Docker image / Build (pull_request) Successful in 5m0s
Test (backend) / unit (22.11.0) (push) Failing after 10m58s
Test (backend) / e2e (22.11.0) (pull_request) Failing after 1m57s
Test (production install and build) / production (22.11.0) (pull_request) Successful in 1m16s
Lint / lint (backend) (push) Successful in 2m15s
Lint / lint (frontend) (push) Successful in 2m20s
Lint / lint (frontend-embed) (push) Successful in 2m15s
Lint / lint (frontend-shared) (push) Has been cancelled
Lint / lint (misskey-bubble-game) (push) Has been cancelled
Test (backend) / unit (22.11.0) (pull_request) Failing after 10m29s
Lint / lint (backend) (pull_request) Successful in 2m57s
Lint / lint (frontend) (pull_request) Successful in 2m44s
Lint / lint (frontend-embed) (pull_request) Successful in 2m42s
Lint / lint (misskey-js) (pull_request) Successful in 2m32s
Lint / lint (frontend-shared) (pull_request) Successful in 3m9s
Lint / lint (misskey-bubble-game) (pull_request) Successful in 2m45s
Lint / typecheck (backend) (pull_request) Successful in 2m14s
Lint / lint (sw) (pull_request) Successful in 2m45s
Lint / lint (misskey-reversi) (pull_request) Successful in 2m56s
Lint / typecheck (misskey-js) (pull_request) Successful in 1m18s
Lint / typecheck (sw) (pull_request) Successful in 1m55s
Some checks failed
Lint / lint (misskey-js) (push) Blocked by required conditions
Lint / lint (misskey-reversi) (push) Blocked by required conditions
Lint / lint (sw) (push) Blocked by required conditions
Lint / typecheck (backend) (push) Blocked by required conditions
Lint / typecheck (misskey-js) (push) Blocked by required conditions
Lint / typecheck (sw) (push) Blocked by required conditions
Lint / pnpm_install (push) Successful in 2m0s
Test (backend) / e2e (22.11.0) (push) Failing after 1m57s
Publish Docker image / Build (push) Successful in 5m10s
Test (production install and build) / production (22.11.0) (push) Successful in 1m22s
Lint / pnpm_install (pull_request) Successful in 1m39s
Publish Docker image / Build (pull_request) Successful in 5m0s
Test (backend) / unit (22.11.0) (push) Failing after 10m58s
Test (backend) / e2e (22.11.0) (pull_request) Failing after 1m57s
Test (production install and build) / production (22.11.0) (pull_request) Successful in 1m16s
Lint / lint (backend) (push) Successful in 2m15s
Lint / lint (frontend) (push) Successful in 2m20s
Lint / lint (frontend-embed) (push) Successful in 2m15s
Lint / lint (frontend-shared) (push) Has been cancelled
Lint / lint (misskey-bubble-game) (push) Has been cancelled
Test (backend) / unit (22.11.0) (pull_request) Failing after 10m29s
Lint / lint (backend) (pull_request) Successful in 2m57s
Lint / lint (frontend) (pull_request) Successful in 2m44s
Lint / lint (frontend-embed) (pull_request) Successful in 2m42s
Lint / lint (misskey-js) (pull_request) Successful in 2m32s
Lint / lint (frontend-shared) (pull_request) Successful in 3m9s
Lint / lint (misskey-bubble-game) (pull_request) Successful in 2m45s
Lint / typecheck (backend) (pull_request) Successful in 2m14s
Lint / lint (sw) (pull_request) Successful in 2m45s
Lint / lint (misskey-reversi) (pull_request) Successful in 2m56s
Lint / typecheck (misskey-js) (pull_request) Successful in 1m18s
Lint / typecheck (sw) (pull_request) Successful in 1m55s
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
This commit is contained in:
parent
4d44adfaa9
commit
672a546669
1 changed files with 2 additions and 1 deletions
|
@ -342,7 +342,8 @@ export function createPostgresDataSource(config: Config, isMain = false) {
|
||||||
},
|
},
|
||||||
} : false,
|
} : false,
|
||||||
logging: log ? 'all' : ['query'],
|
logging: log ? 'all' : ['query'],
|
||||||
logger: (isMain || log) ? new MyCustomLogger(!log) : undefined,
|
logger: process.env.NODE_ENV === 'test' ? undefined :
|
||||||
|
(isMain || log) ? new MyCustomLogger(!log) : undefined,
|
||||||
maxQueryExecutionTime: 500,
|
maxQueryExecutionTime: 500,
|
||||||
entities: entities,
|
entities: entities,
|
||||||
migrations: ['../../migration/*.js'],
|
migrations: ['../../migration/*.js'],
|
||||||
|
|
Loading…
Reference in a new issue