Skip to content

Commit

Permalink
upgrade electron-log
Browse files Browse the repository at this point in the history
  • Loading branch information
kriskbx committed Jan 31, 2019
1 parent c6a38e0 commit 6a3293a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
"chokidar": "^2.0.0",
"electron": "2.0.8",
"electron-compile": "^6.4.2",
"electron-log": "^2.2.14",
"electron-log": "^3.0.0",
"electron-squirrel-startup": "^1.0.0",
"gitlab-time-tracker": "^1.7.37",
"moment": "^2.20.1",
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ const moment = require('moment');
const log = require('electron-log');
const pjson = require('../package.json');

log.transports.file.appName = 'gtt-taskbar';

let gtt = new events.EventEmitter(),
trayIcon = null,
trayWindow = null,
Expand Down Expand Up @@ -643,6 +641,8 @@ ipcMain.on('cache-set', (event, {key, data}) => {
});

process.on('uncaughtException', function (e) {
log.warn("error: " + JSON.stringify(e));

if (dialog.showMessageBox(null, {
type: "error",
title: "Error",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2073,7 +2073,7 @@ [email protected], commander@~2.8.1:
dependencies:
graceful-readlink ">= 1.0.0"

commander@^2.14.1, commander@^2.2.0, "commander@github:kriskbx/commander.js":
commander@^2.14.1, commander@^2.2.0, commander@kriskbx/commander.js:
version "2.19.0"
resolved "https://codeload.github.com/kriskbx/commander.js/tar.gz/2275da95973c27e40e13a4195768947aa39672d0"

Expand Down Expand Up @@ -3357,9 +3357,9 @@ electron-installer-snap@^2.0.0:
which "^1.3.0"
yargs "^11.0.0"

electron-log@^2.2.14:
version "2.2.16"
resolved "https://registry.yarnpkg.com/electron-log/-/electron-log-2.2.16.tgz#c44ffdea51ae90cbe851d25e7cd1bab56fdb328f"
electron-log@^3.0.0:
version "3.0.0-beta4"
resolved "https://registry.yarnpkg.com/electron-log/-/electron-log-3.0.0-beta4.tgz#140ebc58ff4559a33ceb827cbfc6f869b5c100f9"

electron-osx-sign@^0.4.1:
version "0.4.10"
Expand Down

0 comments on commit 6a3293a

Please sign in to comment.