Skip to content

Commit

Permalink
Add loglevel setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Markionium committed Dec 23, 2015
1 parent 33591b9 commit 98315a4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 14 deletions.
1 change: 0 additions & 1 deletion src/List/ContextActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ contextActions.sharing
return d2.models[model.modelDefinition.name].get(model.id);
})
.then(modelToShare => {
console.log(modelToShare);
sharingStore.setState({
model: modelToShare,
open: true,
Expand Down
6 changes: 5 additions & 1 deletion src/maintenance.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ import log from 'loglevel';
import LoadingMask from './loading-mask/LoadingMask.component';
import dhis2 from 'd2-ui/lib/header-bar/dhis2';

log.setLevel(log.levels.DEBUG);
if (process.env.NODE_ENV !== 'production') {
log.setLevel(log.levels.DEBUG);
} else {
log.setLevel(log.levels.ERROR);
}

const routeActions = Action.createActionsFromNames(['transition']);

Expand Down
12 changes: 0 additions & 12 deletions webpack-base-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,6 @@ module.exports = {
},
plugins: [
new webpack.optimize.DedupePlugin(),
//new webpack.optimize.UglifyJsPlugin({
// minimize: true,
// compress: {
// warnings: false
// },
//}),
//new webpack.optimize.OccurenceOrderPlugin(),
//new webpack.ProvidePlugin({
// $: "jquery",
// jQuery: "jquery",
// "window.jQuery": "jquery"
//}),
],
devtool: ['sourcemap'],
};

0 comments on commit 98315a4

Please sign in to comment.