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:
parent
db8a4464c3
commit
ffc69a6fdf
@ -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";
|
||||
}
|
||||
|
||||
@ -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"
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user