From 5dc5c34af33ed146077ec353ffacb8d167be6313 Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Thu, 30 Dec 2021 10:01:20 +0100 Subject: [PATCH] more logging --- packages/api/src/controllers/connections.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/api/src/controllers/connections.js b/packages/api/src/controllers/connections.js index 05368d01..c984e07c 100644 --- a/packages/api/src/controllers/connections.js +++ b/packages/api/src/controllers/connections.js @@ -8,6 +8,7 @@ const { datadir, filesdir } = require('../utility/directories'); const socket = require('../utility/socket'); const { encryptConnection } = require('../utility/crypting'); const { handleProcessCommunication } = require('../utility/processComm'); +const { pickSafeConnectionInfo } = require('../utility/crypting'); const processArgs = require('../utility/processArgs'); @@ -53,6 +54,8 @@ function getPortalCollections() { singleDatabase: !!process.env[`DATABASE_${id}`], displayName: process.env[`LABEL_${id}`], })); + console.log('Using connections from ENV variables:'); + console.log(JSON.stringify(connections.map(pickSafeConnectionInfo), undefined, 2)); const noengine = connections.filter(x => !x.engine); if (noengine.length > 0) { console.log(