Skip to content

Commit

Permalink
bad delete on log info were causing an exception
Browse files Browse the repository at this point in the history
  • Loading branch information
luismesas committed Mar 28, 2016
1 parent 912472e commit 37454c4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/internal_service.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ module.exports = function () {
user: req.user,
tokenInfo: req.tokenInfo
};
delete(logInfo.request.params.password);

if (logInfo.request.params && logInfo.request.params.password) {
delete(logInfo.request.params.password);
}

req.log.info(logInfo, 'response');
});
Expand Down

0 comments on commit 37454c4

Please sign in to comment.