Skip to content

Commit

Permalink
chore: log DB SSL settings
Browse files Browse the repository at this point in the history
  • Loading branch information
slowbackspace committed Oct 23, 2023
1 parent 63ea31f commit f570cc3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/config/config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import { logger } from '../utils/logger.js';

const loadConfig = () => {
if (!process.env.DB_CONNECTION_STRING) {
throw Error('Set env variable DB_CONNECTION_STRING');
}

logger.info(`DB SSL settings: ${process.env.DATABASE_SSL}\nCA cert:\n${process.env.CA_CERT}`);

return {
db: {
connectionString: process.env.DB_CONNECTION_STRING,
Expand Down

0 comments on commit f570cc3

Please sign in to comment.