diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-12-16 16:52:51 +0100 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-12-16 16:52:51 +0100 |
commit | d9e9ce0e057ecf58ccaee9cc5d7c2231b98c0947 (patch) | |
tree | cf8fc4f90d7a63eef80534a3dd11a5fc55c89b88 /server/sonar-web/src/main/js/apps/code/store | |
parent | 8dad7340258782ce1ff974827649af5393378c14 (diff) | |
download | sonarqube-d9e9ce0e057ecf58ccaee9cc5d7c2231b98c0947.tar.gz sonarqube-d9e9ce0e057ecf58ccaee9cc5d7c2231b98c0947.zip |
use envify to log only in development
Diffstat (limited to 'server/sonar-web/src/main/js/apps/code/store')
-rw-r--r-- | server/sonar-web/src/main/js/apps/code/store/configureStore.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/apps/code/store/configureStore.js b/server/sonar-web/src/main/js/apps/code/store/configureStore.js index 20d1587895a..821c23f5ae0 100644 --- a/server/sonar-web/src/main/js/apps/code/store/configureStore.js +++ b/server/sonar-web/src/main/js/apps/code/store/configureStore.js @@ -4,10 +4,13 @@ import createLogger from 'redux-logger'; import rootReducer from '../reducers'; +const logger = createLogger({ + predicate: () => process.env.NODE_ENV === 'development' +}); const createStoreWithMiddleware = applyMiddleware( thunk, - createLogger() + logger )(createStore); |