mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 07:07:43 +01:00
Add log for seeds
This commit is contained in:
parent
c1edc622c9
commit
73b0a17dd5
1 changed files with 3 additions and 1 deletions
|
@ -78,7 +78,7 @@ public class DefaultSeedNodeRepository implements SeedNodeRepository {
|
||||||
|
|
||||||
// refill the cache
|
// refill the cache
|
||||||
seedNodeFile.lines().forEach(line -> {
|
seedNodeFile.lines().forEach(line -> {
|
||||||
final Matcher matcher = pattern.matcher(line);
|
Matcher matcher = pattern.matcher(line);
|
||||||
if (matcher.find())
|
if (matcher.find())
|
||||||
cache.add(new NodeAddress(matcher.group(1)));
|
cache.add(new NodeAddress(matcher.group(1)));
|
||||||
|
|
||||||
|
@ -89,6 +89,8 @@ public class DefaultSeedNodeRepository implements SeedNodeRepository {
|
||||||
|
|
||||||
// filter
|
// filter
|
||||||
cache.removeAll(bisqEnvironment.getBannedSeedNodes().stream().map(NodeAddress::new).collect(Collectors.toSet()));
|
cache.removeAll(bisqEnvironment.getBannedSeedNodes().stream().map(NodeAddress::new).collect(Collectors.toSet()));
|
||||||
|
|
||||||
|
log.info("Seed nodes: {}", cache);
|
||||||
} catch (Throwable t) {
|
} catch (Throwable t) {
|
||||||
log.error(t.toString());
|
log.error(t.toString());
|
||||||
t.printStackTrace();
|
t.printStackTrace();
|
||||||
|
|
Loading…
Add table
Reference in a new issue