Skip to content

Commit

Permalink
Merge pull request #14 from teohhanhui/production-logging
Browse files Browse the repository at this point in the history
Tweak log output in production
  • Loading branch information
teohhanhui authored Jun 28, 2016
2 parents 2b5861c + e6bf9b8 commit 642da6f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
},
"dependencies": {
"aws-sdk": "~2.0.0-rc9",
"chalk": "~1.0.0",
"chalk": "^1.1.3",
"commander": "^2.2.0",
"concat-stream": "~1.4.5",
"errorhandler": "^1.0.1",
Expand All @@ -36,7 +36,7 @@
"lodash": "~2.4.1",
"map-stream": "~0.1.0",
"mkdirp": "^0.5.0",
"morgan": "^1.0.1",
"morgan": "^1.7.0",
"request": "~2.34.0",
"sharp": "^0.15.0",
"twit": "~1.1.15"
Expand Down
2 changes: 1 addition & 1 deletion src/config/production.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ errorHandler = require('errorhandler');
module.exports = function(app){

app.set('port', process.env.PORT || 3001);
app.use(morgan('dev'));
app.use(morgan('short'));
app.use(errorHandler());

};
2 changes: 0 additions & 2 deletions src/utils/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ slice = [].slice;
prefix = env.LOG_PREFIX;
queueLog = env.QUEUE_LOG;

chalk.enabled = true;


function Logger(){
this.queue = [];
Expand Down

0 comments on commit 642da6f

Please sign in to comment.