Skip to content

Commit

Permalink
Logger level for dev
Browse files Browse the repository at this point in the history
  • Loading branch information
sheldhur committed Dec 17, 2017
1 parent 591e36a commit ea4d682
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/main.development.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import configureStore from './store/configureStore';
import appPackage from './package.json';

autoUpdater.logger = log;
autoUpdater.logger.transports.file.level = 'info';
autoUpdater.logger.transports.file.level = process.env.NODE_ENV === 'development' ? ['error', 'warn', 'info', 'verbose', 'debug', 'silly'] : 'info';
log.info('App starting...');

const store = configureStore();
Expand Down Expand Up @@ -92,7 +92,9 @@ app.on('ready', async () => {
menuBuilder.buildMenu();
});


autoUpdater.on('update-available', (info) => {
console.log(info);
});
autoUpdater.on('download-progress', (progressObj) => {
log.info('Downloaded ' + Math.round(progressObj.percent) + '% (' + progressObj.transferred + "/" + progressObj.total + ')');
});
Expand Down

0 comments on commit ea4d682

Please sign in to comment.