Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

Commit

Permalink
Merge pull request #9 from lukasolson/fix/log-no-cookies
Browse files Browse the repository at this point in the history
Don't log values of cookies
  • Loading branch information
lukasolson authored Jul 29, 2016
2 parents 20ba469 + 9f9f5fd commit cfe7c6b
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 cfe7c6b

Please sign in to comment.