Skip to content

Commit bb07586

Browse files
committed
fix: startup logs stringified objects incorrectly
1 parent 823d27b commit bb07586

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

config/config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
const _ = require("underscore");
22
const path = require("path");
3+
const util = require('util')
34

45
const finalEnv = process.env.NODE_ENV || "development";
56

@@ -8,6 +9,7 @@ const envConf = require(path.resolve(__dirname + "/../config/env/" + finalEnv.to
89

910
const config = { ...allConf, ...envConf }
1011

11-
console.log(`Current Config: ${config}`)
12+
console.log(`Current Config:`)
13+
console.log(util.inspect(config, false, null))
1214

1315
module.exports = config;

server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ MongoClient.connect(db, (err, db) => {
3333
console.log(err);
3434
process.exit(1);
3535
}
36-
console.log(`Connected to the database: ${db}`);
36+
console.log(`Connected to the database`);
3737

3838
/*
3939
// Fix for A5 - Security MisConfig

0 commit comments

Comments
 (0)