mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 01:41:11 +01:00
Dont log bridges if empty
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
This commit is contained in:
parent
53609ec9c3
commit
f96511f0fa
@ -17,20 +17,21 @@
|
||||
|
||||
package bisq.network.p2p.network;
|
||||
|
||||
import org.berndpruenster.netlayer.tor.NativeTor;
|
||||
import org.berndpruenster.netlayer.tor.Tor;
|
||||
import org.berndpruenster.netlayer.tor.TorCtlException;
|
||||
import org.berndpruenster.netlayer.tor.Torrc;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.IOException;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import java.util.Date;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import org.berndpruenster.netlayer.tor.NativeTor;
|
||||
import org.berndpruenster.netlayer.tor.Tor;
|
||||
import org.berndpruenster.netlayer.tor.TorCtlException;
|
||||
import org.berndpruenster.netlayer.tor.Torrc;
|
||||
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
@ -65,7 +66,7 @@ public class NewTor extends TorMode {
|
||||
long ts1 = new Date().getTime();
|
||||
|
||||
Collection<String> bridgeEntries = bridgeAddressProvider.getBridgeAddresses();
|
||||
if (bridgeEntries != null)
|
||||
if (bridgeEntries != null && !bridgeEntries.isEmpty())
|
||||
log.info("Using bridges: {}", bridgeEntries.stream().collect(Collectors.joining(",")));
|
||||
|
||||
Torrc override = null;
|
||||
|
Loading…
Reference in New Issue
Block a user