From 6c1f5e069b113da61681bdf8a32411dec84b7c92 Mon Sep 17 00:00:00 2001 From: rikinsk Date: Tue, 18 Jun 2019 11:55:51 +0530 Subject: [PATCH] update console dev logging + add disable instructions to README --- console/README.md | 3 +++ console/src/client.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/console/README.md b/console/README.md index d99b5fda094d9..66474ce93893e 100644 --- a/console/README.md +++ b/console/README.md @@ -137,6 +137,9 @@ Tests are written using [Cypress](https://www.cypress.io/). You can use the [Redux DevTools Extension](http://extension.remotedev.io/) to inspect and debug the Redux store. It should automatically connect to the Redux store when started in development mode. +By default [redux-logger](https://www.npmjs.com/package/redux-logger) is enabled to assist in development. +You can disable it if you wish by commenting out the `createLogger` line in `src/client.js` + ### Run Tests - Run tests: `npm run cypress` diff --git a/console/src/client.js b/console/src/client.js index 7eb43059d7636..da978255d73d9 100755 --- a/console/src/client.js +++ b/console/src/client.js @@ -105,7 +105,7 @@ if (__DEVELOPMENT__) { applyMiddleware( thunk, routerMiddleware(browserHistory), - createLogger(), + createLogger({ diff: true, duration: true }), analyticsLogger ), require('redux-devtools').persistState(