1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Revert mapProcessName export commit

Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com>
This commit is contained in:
Hung-Han (Henry) Chen 2021-07-13 10:06:52 +03:00
parent db8a4464c3
commit ffc69a6fdf
No known key found for this signature in database
GPG Key ID: 54B44603D251B788
2 changed files with 2 additions and 3 deletions

View File

@ -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";
}

View File

@ -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"
};