Skip to content

Commit

Permalink
chore: remove excessive logging of DB queries
Browse files Browse the repository at this point in the history
  • Loading branch information
nklomp committed Sep 28, 2023
1 parent d0048cb commit 82791b3
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const sqliteConfig: SqliteConnectionOptions = {
migrationsRun: false, // We run migrations from code to ensure proper ordering with Redux
synchronize: false, // We do not enable synchronize, as we use migrations from code
migrationsTransactionMode: 'each', // protect every migration with a separate transaction
logging: 'warn', // 'all' means to enable all logging
logging: ['info'], // 'all' means to enable all logging
logger: 'advanced-console',
}

Expand Down
2 changes: 1 addition & 1 deletion packages/data-store/src/__tests__/contact.entities.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ describe('Database entities tests', (): void => {
dbConnection = await new DataSource({
type: 'sqlite',
database: ':memory:',
logging: 'warn',
logging: ['info'],
migrationsRun: false,
migrations: DataStoreMigrations,
synchronize: false,
Expand Down
2 changes: 1 addition & 1 deletion packages/data-store/src/__tests__/contact.store.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe('Contact store tests', (): void => {
dbConnection = await new DataSource({
type: 'sqlite',
database: ':memory:',
logging: 'warn',
logging: ['info'],
migrationsRun: false,
migrations: DataStoreMigrations,
synchronize: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe('Database entities tests', (): void => {
dbConnection = await new DataSource({
type: 'sqlite',
database: ':memory:',
//logging: 'warn',
//logging: ['info'],
migrationsRun: false,
migrations: DataStoreMigrations,
synchronize: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ describe('Issuance branding store tests', (): void => {
dbConnection = await new DataSource({
type: 'sqlite',
database: ':memory:',
//logging: 'warn',
//logging: ['info'],
migrationsRun: false,
migrations: DataStoreMigrations,
synchronize: false,
Expand Down
2 changes: 1 addition & 1 deletion packages/kv-store/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ import { DataSource } from 'typeorm'
dbConnection = await new DataSource({
type: 'sqlite',
database: ':memory:',
logging: 'warn',
logging: ['info'],
migrationsRun: true,
synchronize: false,
migrations: [...kvStoreMigrations],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const sqliteConfig: SqliteConnectionOptions = {
migrationsRun: false, // We run migrations from code to ensure proper ordering with Redux
synchronize: false, // We do not enable synchronize, as we use migrations from code
migrationsTransactionMode: 'each', // protect every migration with a separate transaction
logging: 'warn', // 'all' means to enable all logging
logging: ['info'], // 'all' means to enable all logging
logger: 'advanced-console',
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const sqliteConfig: SqliteConnectionOptions = {
migrationsRun: false, // We run migrations from code to ensure proper ordering with Redux
synchronize: false, // We do not enable synchronize, as we use migrations from code
migrationsTransactionMode: 'each', // protect every migration with a separate transaction
logging: 'warn', // 'all' means to enable all logging
logging: ['info'], // 'all' means to enable all logging
logger: 'advanced-console',
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const sqliteConfig: SqliteConnectionOptions = {
migrationsRun: false, // We run migrations from code to ensure proper ordering with Redux
synchronize: false, // We do not enable synchronize, as we use migrations from code
migrationsTransactionMode: 'each', // protect every migration with a separate transaction
logging: 'warn', // 'all' means to enable all logging
logging: ['info'], // 'all' means to enable all logging
logger: 'advanced-console',
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const sqliteConfig: SqliteConnectionOptions = {
migrationsRun: false, // We run migrations from code to ensure proper ordering with Redux
synchronize: false, // We do not enable synchronize, as we use migrations from code
migrationsTransactionMode: 'each', // protect every migration with a separate transaction
logging: 'warn', // 'all' means to enable all logging
logging: ['info'], // 'all' means to enable all logging
logger: 'advanced-console',
}

Expand All @@ -34,7 +34,7 @@ const postgresConfig: PostgresConnectionOptions = {
migrationsRun: false, // We run migrations from code to ensure proper ordering with Redux
synchronize: false, // We do not enable synchronize, as we use migrations from code
migrationsTransactionMode: 'each', // protect every migration with a separate transaction
logging: 'warn', // 'all' means to enable all logging
logging: ['info'], // 'all' means to enable all logging
logger: 'advanced-console',
}
export { sqliteConfig, postgresConfig, DB_CONNECTION_NAME_SQLITE, DB_CONNECTION_NAME_POSTGRES, DB_ENCRYPTION_KEY }
4 changes: 2 additions & 2 deletions packages/w3c-vc-api/__tests__/database/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const sqliteConfig: SqliteConnectionOptions = {
migrationsRun: false, // We run migrations from code to ensure proper ordering with Redux
synchronize: false, // We do not enable synchronize, as we use migrations from code
migrationsTransactionMode: 'each', // protect every migration with a separate transaction
logging: 'warn', // 'all' means to enable all logging
logging: ['info'], // 'all' means to enable all logging
logger: 'advanced-console',
}

Expand All @@ -31,7 +31,7 @@ const postgresConfig: PostgresConnectionOptions = {
migrationsRun: false, // We run migrations from code to ensure proper ordering with Redux
synchronize: false, // We do not enable synchronize, as we use migrations from code
migrationsTransactionMode: 'each', // protect every migration with a separate transaction
logging: 'warn', // 'all' means to enable all logging
logging: ['info'], // 'all' means to enable all logging
logger: 'advanced-console',
}

Expand Down

0 comments on commit 82791b3

Please sign in to comment.