From 368cec864173173c4927acd39fbfbaedcd8ce7f1 Mon Sep 17 00:00:00 2001 From: Zack Spear Date: Tue, 7 Jan 2025 11:40:10 -0800 Subject: [PATCH] refactor: remove unused console log disabling function from helper utilities --- web/helpers/functions.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/web/helpers/functions.ts b/web/helpers/functions.ts index 9c34883b1..f6c9d50c1 100644 --- a/web/helpers/functions.ts +++ b/web/helpers/functions.ts @@ -1,10 +1,2 @@ /** Output key + value as string for each item in the object. Adds new line after each item. */ export const OBJ_TO_STR = (obj: object): string => Object.entries(obj).reduce((str, [p, val]) => `${str}${p}: ${val}\n`, ''); -/** Removes our dev logs from prod builds */ -export const disableProductionConsoleLogs = () => { - if (import.meta.env.PROD && !import.meta.env.VITE_ALLOW_CONSOLE_LOGS) { - console.log = () => {}; - console.debug = () => {}; - console.info = () => {}; - } -};