From bb4c2a85a8d0f06482c87b467f6c2d16a95a21d4 Mon Sep 17 00:00:00 2001 From: Nicole O'Brien Date: Fri, 12 Jan 2024 23:13:33 +0000 Subject: [PATCH] remove logger --- packages/desktop/lib/electron/processes/main.process.ts | 3 --- packages/desktop/lib/electron/utils/logger.utils.ts | 7 ------- 2 files changed, 10 deletions(-) delete mode 100644 packages/desktop/lib/electron/utils/logger.utils.ts diff --git a/packages/desktop/lib/electron/processes/main.process.ts b/packages/desktop/lib/electron/processes/main.process.ts index cdfd5c611c..24c8daa897 100644 --- a/packages/desktop/lib/electron/processes/main.process.ts +++ b/packages/desktop/lib/electron/processes/main.process.ts @@ -34,8 +34,6 @@ import { getMachineId } from '../utils/os.utils' import type { ILedgerProcessMessage } from '../interfaces/ledger-process-message.interface' import { ensureDirectoryExistence } from '../utils/file-system.utils' -const logger = require('electron').remote.require('./logger'); - initialiseAnalytics() /* @@ -74,7 +72,6 @@ let lastError = {} function handleError(errorType, error, isRenderProcessError?): void { if (app.isPackaged) { const errorMessage = error.message || error.reason || error - logger.log(errorType, error, isRenderProcessError) if (!shouldReportError(errorMessage)) { console.error(error) return diff --git a/packages/desktop/lib/electron/utils/logger.utils.ts b/packages/desktop/lib/electron/utils/logger.utils.ts deleted file mode 100644 index 2d1b8bbedc..0000000000 --- a/packages/desktop/lib/electron/utils/logger.utils.ts +++ /dev/null @@ -1,7 +0,0 @@ -import path from 'path'; -import log from 'electron-log'; - -log.transports.file.resolvePath = () => path.join(__dirname, '/logsmain.log'); -log.transports.file.level = 'info'; - -exports.log = (entry) => log.info(entry)