From 8f68afec2c0081101437810e91eff4314ad7e5cb Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Mon, 31 Aug 2020 15:42:49 -0400 Subject: [PATCH] add or remote Signed-off-by: Sebastian Malton --- src/main/logger.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/logger.ts b/src/main/logger.ts index fc7fcbf771..0d720b65ac 100644 --- a/src/main/logger.ts +++ b/src/main/logger.ts @@ -1,4 +1,4 @@ -import { app } from "electron"; +import { app, remote } from "electron"; import winston from "winston" import { isDebugging } from "../common/vars"; @@ -11,7 +11,7 @@ const fileOptions: winston.transports.FileTransportOptions = { handleExceptions: false, level: isDebugging ? "debug" : "info", filename: "lens.log", - dirname: app.getPath("logs"), + dirname: (app || remote.app).getPath("logs"), maxsize: 16 * 1024, maxFiles: 16, tailable: true,