Skip to content

Commit

Permalink
[wallet] If an action is in the blacklist, now only logs the name (bu…
Browse files Browse the repository at this point in the history
…t not the payload) (#1338)
  • Loading branch information
martinvol authored and ashishb committed Oct 15, 2019
1 parent a58d510 commit 833c2d3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/mobile/src/redux/sagas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ function* loggerSaga() {

yield takeEvery('*', (action: AnyAction) => {
if (action && action.type && loggerBlacklist.includes(action.type)) {
// Log only action type, but not the payload as it can have
// sensitive information.
Logger.debug('redux/saga@logger', `${action.type} (payload not logged)`)
return
}
try {
Expand Down

0 comments on commit 833c2d3

Please sign in to comment.