Skip to content

Commit

Permalink
Merge pull request elastic#9 from lukasolson/fix/log-no-cookies
Browse files Browse the repository at this point in the history
Don't log values of cookies

Former-commit-id: cfe7c6b
  • Loading branch information
lukasolson authored Jul 29, 2016
2 parents 0152ea3 + 784e134 commit 9c0539e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/server/logging/configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,11 @@ export default function loggingConfiguration(config) {
dest: config.get('logging.dest'),
// I'm adding the default here because if you add another filter
// using the commandline it will remove authorization. I want users
// to have to explicitly set --logging.filter.authorization=none to
// have it show up int he logs.
// to have to explicitly set --logging.filter.authorization=none or
// --logging.filter.cookie=none to have it show up in the logs.
filter: _.defaults(config.get('logging.filter'), {
authorization: 'remove'
authorization: 'remove',
cookie: 'remove'
})
},
events: _.transform(events, function (filtered, val, key) {
Expand Down

0 comments on commit 9c0539e

Please sign in to comment.