Skip to content

Commit

Permalink
Chore: Disable custom protocol debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
laurent22 committed Sep 26, 2024
1 parent c4a7749 commit ac43c62
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, number>();

Expand Down

0 comments on commit ac43c62

Please sign in to comment.