Navigation Menu

Skip to content

Commit

Permalink
Use morgan
Browse files Browse the repository at this point in the history
Because express.logger doesn't exist.
  • Loading branch information
kou committed Apr 24, 2014
1 parent bb2efe5 commit af28dd4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/droonga-http-server
Expand Up @@ -4,6 +4,7 @@
var express = require('express'),
bodyParser = require('body-parser'),
cookieParser = require('cookie-parser'),
morgan = require('morgan'),
session = require('express-session'),
droonga = require('express-droonga'),
responseTime = require('response-time'),
Expand Down Expand Up @@ -49,7 +50,7 @@ if (options.enableTrustProxy) {
}

if (options.enableLogging) {
application.use(express.logger());
application.use(morgan());
}
application.use(cookieParser('secret key'));
application.use(session({
Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -25,6 +25,7 @@
"express": ">=4.0",
"express-droonga": "*",
"express-session": "*",
"morgan": "*",
"response-time": "*"
},
"bin": {
Expand Down

0 comments on commit af28dd4

Please sign in to comment.