Skip to content

Commit

Permalink
add 'ip' to logger's request white-list
Browse files Browse the repository at this point in the history
  • Loading branch information
Oded Leiba committed Jan 17, 2017
1 parent e0d97ec commit 9f69cd9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ module.exports = function (properties) {
requestid && app.use(requestid)
// Adds optional express logging to winston logger
expressWinston.requestWhitelist.push('body')
expressWinston.requestWhitelist.push('ip')
log_requests && app.use(morgan('short', {immediate: true}))
logger && app.use(expressWinston.logger({
winstonInstance: logger,
Expand Down

0 comments on commit 9f69cd9

Please sign in to comment.