Skip to content

Commit d148f2c

Browse files
authored
Merge pull request #850 from razee-io/bunyan1
fix:Enhance apollo logging
2 parents 65f0268 + 87ed4f3 commit d148f2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/apollo/utils/bunyan.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ const getBunyanConfig = (route) => {
4040
const result = {
4141
name: route,
4242
parseUA: false,
43-
excludes: ['referer', 'body', 'short-body'],
43+
excludes: ['referer', 'short-body'],
4444
levelFn: responseCodeMapper,
45-
obfuscate: ['req.headers.razee-org-key'],
45+
obfuscate: ['req.headers.razee-org-key', 'req.headers.x-api-key', 'req.header.authorization', 'req.header.org-admin-key', 'req.body.variables.login', 'req.body.variables.password', 'req.body.variables.email', 'req.body.variables.name'],
4646
genReqId: function (req) {
4747
return req.request_id;
4848
},

0 commit comments

Comments
 (0)