logging
This commit is contained in:
@@ -16,7 +16,13 @@ const { Pool } = pkg;
|
||||
inject: [ConfigService, WINSTON_MODULE_PROVIDER, ClsService],
|
||||
useFactory: async (configService: ConfigService, logger: Logger, cls: ClsService) => {
|
||||
const connectionString = configService.get<string>('DATABASE_URL');
|
||||
console.log('--->',connectionString)
|
||||
const dbHost = configService.get<string>('DB_HOST');
|
||||
const dbPort = configService.get<string>('DB_PORT');
|
||||
const dbName = configService.get<string>('DB_NAME');
|
||||
const dbUser = configService.get<string>('DB_USER');
|
||||
const dbPassword = configService.get<string>('DB_PASSWORD');
|
||||
logger.info(`Drizzle Connection - URL: ${connectionString}, Host: ${dbHost}, Port: ${dbPort}, DB: ${dbName}, User: ${dbUser}`);
|
||||
console.log(`---> Drizzle Connection - URL: ${connectionString}, Host: ${dbHost}, Port: ${dbPort}, DB: ${dbName}, User: ${dbUser}`);
|
||||
const pool = new Pool({
|
||||
connectionString,
|
||||
// ssl: true, // Falls benötigt
|
||||
|
||||
Reference in New Issue
Block a user