diff --git a/codecov.yml b/codecov.yml index 673a07d..353f447 100644 --- a/codecov.yml +++ b/codecov.yml @@ -4,4 +4,5 @@ coverage: precision: 2 ignore: - "test/*" - - "src/middlewares/logMiddleware.js" \ No newline at end of file + - "src/app.js" + - "src/middlewares/logMiddleware.js" diff --git a/src/app.js b/src/app.js index ea77126..bd039d6 100644 --- a/src/app.js +++ b/src/app.js @@ -6,9 +6,9 @@ const http = require('http') // Signal handling process.on('SIGTERM', () => { - console.log('Received SIGTERM signal. Gracefully stopping web server.'); + console.debug('Received SIGTERM signal. Gracefully stopping web server.'); server.close(() => { - console.log('Server stopped sucessfully.'); + console.debug('Server stopped sucessfully.'); }); }); @@ -35,9 +35,9 @@ app.use(require('./middlewares/customHttpBodyMiddleware')); // Router app.all('*', (req, res) => res.json({ - host: require('./response/host')(req), - http: require('./response/http')(req), - request: require('./response/request')(req), - environment: require('./response/environment')(req) + host: require('./response/host')(req), + http: require('./response/http')(req), + request: require('./response/request')(req), + environment: require('./response/environment')(req) })); module.exports = server diff --git a/src/webserver.js b/src/webserver.js index 5eec992..233d6ac 100644 --- a/src/webserver.js +++ b/src/webserver.js @@ -1,3 +1,3 @@ const app = require('./app'); const config = require('./nconf'); -app.listen(config.get('port'), () => console.log(`Listening on port ${config.get('port')}.`)); +app.listen(config.get('port'), () => console.debug(`Listening on port ${config.get('port')}.`));