Permissionless-Software-Foundation / ipfs-coord

A JS npm library for helping IPFS peers coordinate, find a common interest, and stay connected around that interest.
MIT License
13 stars 3 forks source link

How do you disbale logging #96

Open anthonybudd opened 1 year ago

anthonybudd commented 1 year ago

I'm trying to use your library but my screen is getting filled up with debug out put I do not want/need.

How do is disable this?

 ipfsCoord = new IpfsCoord({ debugLevel: 0 });
4/4/2023, 10:10:54 AM: Renewed connections to all known peers.
4/4/2023, 10:10:55 AM: Announced self on psf-ipfs-coordination-001 pubsub channel.
4/4/2023, 10:10:58 AM: Renewed connections to all known Circuit Relay nodes.
4/4/2023, 10:11:15 AM: Renewed connections to all known peers.
4/4/2023, 10:11:17 AM: Announced self on psf-ipfs-coordination-001 pubsub channel.
4/4/2023, 10:11:36 AM: Renewed connections to all known peers.
4/4/2023, 10:11:39 AM: Announced self on psf-ipfs-coordination-001 pubsub channel.
christroutner commented 1 year ago

This is an outstanding issue. Setting debugLevel: 0 should disable all logging, but currently it does not.

Someone needs to submit a PR to move any console.log() functions into the logging system so that they can be disabled.