Skip to content

Commit

Permalink
Finalize debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderwe committed Jun 24, 2018
1 parent 28316c3 commit c7fb58c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions app/main/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function createWindow() {
mainWindow.loadURL(`file://${__dirname}/../renderer/index.html`);

// Open the DevTools.
if (process.env.ELECTRON_DEV) {
if (process.env.ELECTRON_DEV) {
mainWindow.webContents.openDevTools();
}

Expand All @@ -65,8 +65,10 @@ function createWindow() {

app.on('ready', () => {
electronLog.transports.file.level = 'debug';

electronLog.info('(Main) - ====== Application Start =====')

createWindow();

if (process.env.ELECTRON_DEV) {
const {
default: installExtension,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"dist:win": "build -w --x64",
"dist:lin": "build -l",
"postinstall": "install-app-deps",
"release": "electron-builder -ml",
"release": " yarn build && electron-builder -ml",
"start": "cross-env ELECTRON_DEV=true electron app/build/main.js",
"test": "mocha",
"tsc:watch": "tsc --watch --p tsconfig.json --declaration --target es5"
Expand Down

0 comments on commit c7fb58c

Please sign in to comment.