Skip to content

Commit

Permalink
src: no need to log http request
Browse files Browse the repository at this point in the history
Loadbalancer should do this job instead

PR-URL: #45
  • Loading branch information
makemek committed Apr 29, 2017
1 parent f046d7b commit 42d7d69
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
"body-parser": "1.17.1",
"express": "4.15.2",
"express-handlebars": "3.0.0",
"morgan": "1.8.1",
"passport": "0.3.2",
"passport-local": "1.0.0",
"pino": "4.4.0",
Expand Down
9 changes: 0 additions & 9 deletions src/modcolle.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ const expressHandlebars = require('express-handlebars')
const passport = require('passport')
const LocalStrategy = require('passport-local').Strategy
const loginStrategy = require('./login-strategy')
const morgan = require('morgan')
const app = express()
const log = require('./logger')('app:router')
const router = require('./routing/')
Expand Down Expand Up @@ -44,14 +43,6 @@ function setupMiddleware() {
passport.use('dmm-session', new LocalStrategy({
usernameField: 'dmm_session', passwordField: 'dmm_session'},
loginStrategy.dmmSession))

log.debug('configure stream log messages from morgan')
const writeStream = {
write(message){
log.info(message)
}
}
app.use(morgan('combined', {stream: writeStream}))
}

function setupTemplateEngine() {
Expand Down

0 comments on commit 42d7d69

Please sign in to comment.