Skip to content
This repository has been archived by the owner on Jul 9, 2023. It is now read-only.

Commit

Permalink
fix logging issues
Browse files Browse the repository at this point in the history
  • Loading branch information
n8maninger committed Jul 1, 2020
1 parent f78ec58 commit d065604
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"bignumber.js": "^9.0.0",
"core-js": "^3.6.5",
"decimal.js-light": "^2.5.0",
"electron-log": "^3.0.9",
"electron-log": "^4.2.2",
"request": "^2.88.2",
"style-resources-loader": "^1.3.3",
"vue": "^2.6.11",
Expand Down
3 changes: 2 additions & 1 deletion src/background/window.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ async function createWindow() {
backgroundColor: '#1d1e21',
show: false,
webPreferences: {
nodeIntegration: process.env.ELECTRON_NODE_INTEGRATION
nodeIntegration: process.env.ELECTRON_NODE_INTEGRATION,
enableRemoteModule: true
},
// darwin overrides
...(process.platform === 'darwin' ? {
Expand Down
3 changes: 2 additions & 1 deletion src/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { promises as fs } from 'fs';
import path from 'path';
import { remote } from 'electron';
import BigNumber from 'bignumber.js';
import log from 'electron-log';

const app = remote.app,
dialog = remote.dialog,
Expand Down Expand Up @@ -100,7 +101,7 @@ export async function readConfig() {
}

export function getLogPath() {
return app.getPath('logs');
return path.dirname(log.transports.file.getFile().path);
}

export function getConsensusPath(loc) {
Expand Down

0 comments on commit d065604

Please sign in to comment.