From 42f352b73a2aa603ad2077999c3775021ee369b2 Mon Sep 17 00:00:00 2001 From: Trevor Nichols Date: Wed, 2 Sep 2020 14:44:12 +1000 Subject: [PATCH] Fix unit test failure Signed-off-by: Trevor Nichols --- src/main/logger.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/logger.ts b/src/main/logger.ts index 0d720b65ac..4068aaacd2 100644 --- a/src/main/logger.ts +++ b/src/main/logger.ts @@ -11,7 +11,7 @@ const fileOptions: winston.transports.FileTransportOptions = { handleExceptions: false, level: isDebugging ? "debug" : "info", filename: "lens.log", - dirname: (app || remote.app).getPath("logs"), + dirname: (app ?? remote?.app)?.getPath("logs"), maxsize: 16 * 1024, maxFiles: 16, tailable: true,