Add log for seeds

This commit is contained in:
Manfred Karrer 2019-03-26 21:35:52 -05:00
parent c1edc622c9
commit 73b0a17dd5
No known key found for this signature in database
GPG key ID: 401250966A6B2C46

View file

@ -78,7 +78,7 @@ public class DefaultSeedNodeRepository implements SeedNodeRepository {
// refill the cache
seedNodeFile.lines().forEach(line -> {
final Matcher matcher = pattern.matcher(line);
Matcher matcher = pattern.matcher(line);
if (matcher.find())
cache.add(new NodeAddress(matcher.group(1)));
@ -89,6 +89,8 @@ public class DefaultSeedNodeRepository implements SeedNodeRepository {
// filter
cache.removeAll(bisqEnvironment.getBannedSeedNodes().stream().map(NodeAddress::new).collect(Collectors.toSet()));
log.info("Seed nodes: {}", cache);
} catch (Throwable t) {
log.error(t.toString());
t.printStackTrace();