From ac43c62ce854ba90a48589a5a99716606bf2d380 Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Wed, 25 Sep 2024 21:57:06 +0100 Subject: [PATCH] Chore: Disable custom protocol debug logging --- .../utils/customProtocols/handleCustomProtocols.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/app-desktop/utils/customProtocols/handleCustomProtocols.ts b/packages/app-desktop/utils/customProtocols/handleCustomProtocols.ts index 0b99aca615..9cd80182f1 100644 --- a/packages/app-desktop/utils/customProtocols/handleCustomProtocols.ts +++ b/packages/app-desktop/utils/customProtocols/handleCustomProtocols.ts @@ -125,6 +125,11 @@ const handleRangeRequest = async (request: Request, targetPath: string) => { // TODO: Use Logger.create (doesn't work for now because Logger is only initialized // in the main process.) const handleCustomProtocols = (logger: LoggerWrapper): CustomProtocolHandler => { + logger = { + ...logger, + debug: () => {}, + }; + const readableDirectories: string[] = []; const readableFiles = new Map();