summaryrefslogtreecommitdiffhomepage
path: root/gui/src/renderer
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2019-04-24 13:43:31 +0200
committerAndrej Mihajlov <and@mullvad.net>2019-04-25 09:39:03 +0200
commit5d64426d40f87fb90db3550f51d83d63b53b0f65 (patch)
tree23a28cdc862fa1af42caac9686780d883a0a75a4 /gui/src/renderer
parentd07d62e752f55718dad05218504c208ea4c354bc (diff)
downloadmullvadvpn-5d64426d40f87fb90db3550f51d83d63b53b0f65.tar.xz
mullvadvpn-5d64426d40f87fb90db3550f51d83d63b53b0f65.zip
Update electron-log
Diffstat (limited to 'gui/src/renderer')
-rw-r--r--gui/src/renderer/app.tsx3
1 files changed, 3 insertions, 0 deletions
diff --git a/gui/src/renderer/app.tsx b/gui/src/renderer/app.tsx
index 2549404e20..fba3733e94 100644
--- a/gui/src/renderer/app.tsx
+++ b/gui/src/renderer/app.tsx
@@ -26,6 +26,7 @@ import { IWindowShapeParameters } from '../main/window-controller';
import { cities, countries, loadTranslations, messages, relayLocations } from '../shared/gettext';
import { IGuiSettingsState } from '../shared/gui-settings-state';
import { IpcRendererEventChannel } from '../shared/ipc-event-channel';
+import { getRendererLogFile, setupLogging } from '../shared/logging';
import AccountDataCache, { AccountFetchRetryAction } from './lib/account-data-cache';
import AccountExpiry from './lib/account-expiry';
@@ -78,6 +79,8 @@ export default class AppRenderer {
private loginTimer?: NodeJS.Timeout;
constructor() {
+ setupLogging(getRendererLogFile());
+
ipcRenderer.on(
'update-window-shape',
(_event: Electron.Event, shapeParams: IWindowShapeParameters) => {