aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/code/store
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2015-12-16 16:52:51 +0100
committerStas Vilchik <vilchiks@gmail.com>2015-12-16 16:52:51 +0100
commitd9e9ce0e057ecf58ccaee9cc5d7c2231b98c0947 (patch)
treecf8fc4f90d7a63eef80534a3dd11a5fc55c89b88 /server/sonar-web/src/main/js/apps/code/store
parent8dad7340258782ce1ff974827649af5393378c14 (diff)
downloadsonarqube-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.js5
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);