diff --git a/src/common/sentry.ts b/src/common/sentry.ts index 80f94a9a3f..da0e749994 100644 --- a/src/common/sentry.ts +++ b/src/common/sentry.ts @@ -28,7 +28,7 @@ import logger from "../main/logger"; /** * "Translate" 'browser' to 'main' as Lens developer more familiar with the term 'main' */ -export function mapProcessName(processType: string) { +function mapProcessName(processType: string) { if (processType === "browser") { return "main"; } diff --git a/src/main/logger.ts b/src/main/logger.ts index 509ecbbe71..7fc392a62c 100644 --- a/src/main/logger.ts +++ b/src/main/logger.ts @@ -23,7 +23,6 @@ import { app, remote } from "electron"; import winston from "winston"; import * as Sentry from "@sentry/electron"; import { isDebugging, isTestEnv } from "../common/vars"; -import { mapProcessName } from "../common/sentry"; const logLevel = process.env.LOG_LEVEL ? process.env.LOG_LEVEL : isDebugging ? "debug" : "info"; const consoleOptions: winston.transports.ConsoleTransportOptions = { @@ -75,7 +74,7 @@ const proxiedLogger: Logger = new Proxy(logger, { property(...params); const tags = { - process: mapProcessName(process.type), + process: process.type, logger: "winston" };