tweak logging

This commit is contained in:
Starbeamrainbowlabs 2022-01-20 19:28:53 +00:00
parent 1091f9c3c2
commit 453ecb58bb
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -191,7 +191,7 @@ class PeerServer extends EventEmitter {
* @return {Promise<Peer|null>} A Promise that resolves to the resulting Peer connection, or null if the connection wasn't attemped.
*/
async __add_peer(address, port) {
l.info(`Attempting to connect to ${address}:${port}`);
l.debug(`Attempting to connect to ${address}:${port}`);
// If we're already connected, don't bother reconnecting again
if(this.peers().some(el => el.address === address && el.port === port)) {