1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-11-27 08:21:03 +02:00

Chore: Disable custom protocol debug logging

This commit is contained in:
Laurent Cozic 2024-09-25 21:57:06 +01:00
parent c4a7749f2a
commit ac43c62ce8

View File

@ -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 // TODO: Use Logger.create (doesn't work for now because Logger is only initialized
// in the main process.) // in the main process.)
const handleCustomProtocols = (logger: LoggerWrapper): CustomProtocolHandler => { const handleCustomProtocols = (logger: LoggerWrapper): CustomProtocolHandler => {
logger = {
...logger,
debug: () => {},
};
const readableDirectories: string[] = []; const readableDirectories: string[] = [];
const readableFiles = new Map<string, number>(); const readableFiles = new Map<string, number>();