Skip to content

Commit

Permalink
Merge pull request #100 from decentraland/chore/log-database-url
Browse files Browse the repository at this point in the history
chore: add log of db connection to debug stg
  • Loading branch information
juanmahidalgo committed Apr 12, 2024
2 parents 584cb11 + 08bbd8d commit f4b8585
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,12 @@ export async function initComponents(): Promise<AppComponents> {

if (!databaseUrl) {
const dbUser = await config.requireString('PG_COMPONENT_PSQL_USER')
console.log('dbUser: ', dbUser)
const dbDatabaseName = await config.requireString('PG_COMPONENT_PSQL_DATABASE')
console.log('dbDatabaseName: ', dbDatabaseName)
const dbPort = await config.requireString('PG_COMPONENT_PSQL_PORT')
const dbHost = await config.requireString('PG_COMPONENT_PSQL_HOST')
console.log('dbHost: ', dbHost)
const dbPassword = await config.requireString('PG_COMPONENT_PSQL_PASSWORD')

databaseUrl = `postgres://${dbUser}:${dbPassword}@${dbHost}:${dbPort}/${dbDatabaseName}`
Expand Down

0 comments on commit f4b8585

Please sign in to comment.