0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-25 01:02:47 +00:00

log config vars

This commit is contained in:
Víctor Losada Hernández
2024-08-29 10:45:36 +02:00
parent b39e8eea16
commit 4edbfa10b5

View File

@@ -420,6 +420,12 @@ app.get('/account', asyncHandler(async (req, res, next)=>{
}));
const nodeEnv = config.get('node_env');
//console group
console.group();
console.log('Config vars')
console.table(config);
console.groupEnd();
const isLocalEnvironment = config.get('local_environments').includes(nodeEnv);
// Local only
if(isLocalEnvironment){