From 833c2d3d2341185dc141aec901c9b2828e776de6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Volpe?= Date: Tue, 15 Oct 2019 17:48:05 +0200 Subject: [PATCH] [wallet] If an action is in the blacklist, now only logs the name (but not the payload) (#1338) --- packages/mobile/src/redux/sagas.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/mobile/src/redux/sagas.ts b/packages/mobile/src/redux/sagas.ts index 454e2228d94..798967ac62f 100644 --- a/packages/mobile/src/redux/sagas.ts +++ b/packages/mobile/src/redux/sagas.ts @@ -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 {