Skip to content

Commit

Permalink
electron: forward debug logs to log
Browse files Browse the repository at this point in the history
  • Loading branch information
indutny committed Sep 19, 2019
1 parent f675085 commit a2a6ca6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/electron/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,18 @@ if (!fs.existsSync(USER_DATA_DIR)) {
}

//
// Configure auto updater
// Configure logs
//

debug.log = (...args) => {
log.debug(...args);
};
debug.enable((process.env.DEBUG || '') + ' peerlinks*');

//
// Configure auto updater
//

autoUpdater.logger = log;
autoUpdater.logger.transports.file.level = 'info';

Expand Down

0 comments on commit a2a6ca6

Please sign in to comment.