From ba4601cfecc713419f5eb87c199464ff6f32071e Mon Sep 17 00:00:00 2001 From: Abhinav Date: Sat, 15 Oct 2022 11:58:43 +0530 Subject: [PATCH] if is electron then only use disk logging --- src/utils/logging/index.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/utils/logging/index.ts b/src/utils/logging/index.ts index 6765e5121..904f06c4a 100644 --- a/src/utils/logging/index.ts +++ b/src/utils/logging/index.ts @@ -10,12 +10,13 @@ export function addLogLine(log: string) { if (isDEVSentryENV()) { console.log(log); } - saveLogLine({ - timestamp: Date.now(), - logLine: log, - }); if (isElectron()) { ElectronService.logToDisk(log); + } else { + saveLogLine({ + timestamp: Date.now(), + logLine: log, + }); } }